From 1b559321937022c560616ed1a07c8c226c60154f Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Tue, 8 Apr 2025 17:09:05 +0530 Subject: [PATCH] apply review fixes (thanks @alexgleason) --- packages/conf/DittoConf.ts | 2 +- packages/ditto/utils/logi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/conf/DittoConf.ts b/packages/conf/DittoConf.ts index 6c06714c..09e6eed2 100644 --- a/packages/conf/DittoConf.ts +++ b/packages/conf/DittoConf.ts @@ -250,7 +250,7 @@ export class DittoConf { level: string; scopes: string[]; } { - const [fmt = 'jsonl', level = 'debug', scopes = ''] = (this.env.get('DEBUG') || '').split(':'); + const [fmt = 'jsonl', level = 'debug', scopes = ''] = (this.env.get('LOG_CONFIG') || '').split(':'); return { fmt: fmt === 'jsonl' ? fmt : 'pretty', level, diff --git a/packages/ditto/utils/logi.ts b/packages/ditto/utils/logi.ts index d8ba9588..4b764201 100644 --- a/packages/ditto/utils/logi.ts +++ b/packages/ditto/utils/logi.ts @@ -52,7 +52,7 @@ const prettyPrint = (msg: LogiValue): string => { }; const pair = (key: string, value: LogiValue | undefined) => { - return `${key} => ${prettyPrint(value || '')}`; + return `${key}: ${prettyPrint(value || '')}`; }; export const createLogiHandler = (conf: DittoConf, defaultHandler: LogiHandler) => (log: LogiLog) => {