Skip to content

Commit

Permalink
bump sdk, nicer log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Aug 14, 2024
1 parent beeb4b4 commit 17c5f15
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 8 deletions.
88 changes: 82 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"dependencies": {
"@chatscope/chat-ui-kit-react": "^2.0.3",
"@chatscope/chat-ui-kit-styles": "^1.4.0",
"@dylibso/xtp": "^0.0.0-rc7",
"@dylibso/xtp": "^0.0.0-rc8",
"@fastify/vite": "^6.0.7",
"fastify": "^4.24.3",
"fastify-sse-v2": "^4.0.0",
"pino-pretty": "^11.2.2",
"react": "^18.3.1",
"react-dom": "^18.2.0"
},
Expand Down
13 changes: 12 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,18 @@ class EventStream {
const EVENTS = new EventStream()

export async function main(dev) {
const server = Fastify({ logger: true })
const server = Fastify({
logger: {
transport: {
target: 'pino-pretty',
options: {
colorize: false,
translateTime: false,
ignore: 'pid,hostname',
}
}
}
})

await server.register(FastifyVite, {
root: import.meta.url,
Expand Down

0 comments on commit 17c5f15

Please sign in to comment.