mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
enable all subscopes of a given scope when it's supplied
This commit is contained in:
parent
8f51a9d6d7
commit
a1aed97dec
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export const createLogiHandler = (conf: DittoConf, defaultHandler: LogiHandler)
|
|||
if (fmt === 'jsonl') return defaultHandler(log);
|
||||
if (!isLevel(level)) throw new Error(`Invalid log level ${level} specified`);
|
||||
if (!lowerLevels[level].includes(log.level)) return;
|
||||
if (scopes.length && !scopes.includes(log.ns)) return;
|
||||
if (scopes.length && !scopes.some(scope => scope.startsWith(log.ns))) return;
|
||||
const message = prettyPrint(log.message || log.msg || '');
|
||||
const remaining = Object.entries(log)
|
||||
.filter(([key]) => !['ns', 'level', 'message', 'msg'].includes(key));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue