Logger: rename 'error' => 'exception' to avoid name clashing in E/S
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user