Skip to content
Snippets Groups Projects
Commit 7f934efe authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

refactor(logger): move cloudwatchlogger instance outside event listener

parent 702d9aaf
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!209chore(logger): push logs to cloudwatch
...@@ -26,8 +26,8 @@ if ( ...@@ -26,8 +26,8 @@ if (
}, },
} }
const awsLogger = new CloudWatchLogger(logConfig)
logger.on('logging', (transport, level, msg, meta) => { logger.on('logging', (transport, level, msg, meta) => {
const awsLogger = new CloudWatchLogger(logConfig)
awsLogger.log({ level, msg, meta }) awsLogger.log({ level, msg, meta })
}) })
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment