apply review fixes (thanks @alexgleason)

This commit is contained in:
Siddharth Singh 2025-04-08 17:09:05 +05:30
parent 8305cea81e
commit 1b55932193
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -250,7 +250,7 @@ export class DittoConf {
level: string; level: string;
scopes: 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 { return {
fmt: fmt === 'jsonl' ? fmt : 'pretty', fmt: fmt === 'jsonl' ? fmt : 'pretty',
level, level,

View file

@ -52,7 +52,7 @@ const prettyPrint = (msg: LogiValue): string => {
}; };
const pair = (key: string, value: LogiValue | undefined) => { const pair = (key: string, value: LogiValue | undefined) => {
return `${key} => ${prettyPrint(value || '')}`; return `${key}: ${prettyPrint(value || '')}`;
}; };
export const createLogiHandler = (conf: DittoConf, defaultHandler: LogiHandler) => (log: LogiLog) => { export const createLogiHandler = (conf: DittoConf, defaultHandler: LogiHandler) => (log: LogiLog) => {