fix(logger): rename message field in logs (#2015)
Browse files- README.md +2 -2
- src/lib/server/logger.ts +1 -0
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
# Chat UI
|
| 2 |
-
|
| 3 |

|
| 4 |
|
| 5 |
A chat interface for LLMs. It is a SvelteKit app and it powers the [HuggingChat app on hf.co/chat](https://huggingface.co/chat).
|
|
|
|
| 1 |
+
# Chat UI
|
| 2 |
+
|
| 3 |

|
| 4 |
|
| 5 |
A chat interface for LLMs. It is a SvelteKit app and it powers the [HuggingChat app on hf.co/chat](https://huggingface.co/chat).
|
src/lib/server/logger.ts
CHANGED
|
@@ -17,6 +17,7 @@ if (dev) {
|
|
| 17 |
|
| 18 |
export const logger = pino({
|
| 19 |
...options,
|
|
|
|
| 20 |
level: config.LOG_LEVEL || "info",
|
| 21 |
formatters: {
|
| 22 |
level: (label) => {
|
|
|
|
| 17 |
|
| 18 |
export const logger = pino({
|
| 19 |
...options,
|
| 20 |
+
messageKey: "message",
|
| 21 |
level: config.LOG_LEVEL || "info",
|
| 22 |
formatters: {
|
| 23 |
level: (label) => {
|