Fix LOG_CONFIG parsing

This commit is contained in:
Alex Gleason 2025-04-29 12:42:40 -05:00
parent 3a849700db
commit 49e509e420
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

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