mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29: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;
|
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,
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue