mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Fix LOG_CONFIG parsing
This commit is contained in:
parent
3a849700db
commit
49e509e420
1 changed files with 1 additions and 1 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('LOG_CONFIG') || '').split(':');
|
const [fmt = 'jsonl', level = 'debug', scopes = ''] = (this.env.get('LOG_CONFIG') || '').split(':').filter(Boolean);
|
||||||
return {
|
return {
|
||||||
fmt: fmt === 'jsonl' ? fmt : 'pretty',
|
fmt: fmt === 'jsonl' ? fmt : 'pretty',
|
||||||
level,
|
level,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue