Logger: rename 'error' => 'exception' to avoid name clashing in E/S

This commit is contained in:
Daniel García Aubert
2020-07-21 17:53:46 +02:00
parent 3102d895f2
commit b9198b59a1
13 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -343,7 +343,7 @@ function incrementMapViews ({ metadataBackend }) {
mapConfigProvider.getMapConfig((err, mapConfig) => {
if (err) {
logger.warn({ error: err }, 'Failed to increment mapview count');
logger.warn({ exception: err }, 'Failed to increment mapview count');
return next();
}
@@ -353,7 +353,7 @@ function incrementMapViews ({ metadataBackend }) {
metadataBackend.incMapviewCount(user, statTag, (err) => {
if (err) {
logger.warn({ error: err }, 'Failed to increment mapview count');
logger.warn({ exception: err }, 'Failed to increment mapview count');
}
next();