diff options
Diffstat (limited to 'log/mod.ts')
-rw-r--r-- | log/mod.ts | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/log/mod.ts b/log/mod.ts index cb166376e..3f34d7f1d 100644 --- a/log/mod.ts +++ b/log/mod.ts @@ -80,11 +80,9 @@ export async function setup(config: LogConfig): Promise<void> { }; // tear down existing handlers - state.handlers.forEach( - (handler): void => { - handler.destroy(); - } - ); + state.handlers.forEach((handler): void => { + handler.destroy(); + }); state.handlers.clear(); // setup handlers @@ -106,13 +104,11 @@ export async function setup(config: LogConfig): Promise<void> { const handlerNames = loggerConfig.handlers || []; const handlers: BaseHandler[] = []; - handlerNames.forEach( - (handlerName): void => { - if (state.handlers.has(handlerName)) { - handlers.push(state.handlers.get(handlerName)!); - } + handlerNames.forEach((handlerName): void => { + if (state.handlers.has(handlerName)) { + handlers.push(state.handlers.get(handlerName)!); } - ); + }); const levelName = loggerConfig.level || DEFAULT_LEVEL; const logger = new Logger(levelName, handlers); |