mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
apply review fixes (thanks @alexgleason)
This commit is contained in:
parent
8305cea81e
commit
1b55932193
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue