Adapt JSON output to the standard structure

This commit is contained in:
Daniel García Aubert
2020-07-21 16:36:23 +02:00
parent b32a073ac3
commit 3937b8c271
21 changed files with 51 additions and 96 deletions
+2 -4
View File
@@ -343,8 +343,7 @@ function incrementMapViews ({ metadataBackend }) {
mapConfigProvider.getMapConfig((err, mapConfig) => {
if (err) {
err.message = `Failed to increment mapview count for user '${user}'. ${err.message}`;
logger.warn({ error: err });
logger.warn({ error: err }, 'Failed to increment mapview count');
return next();
}
@@ -354,8 +353,7 @@ function incrementMapViews ({ metadataBackend }) {
metadataBackend.incMapviewCount(user, statTag, (err) => {
if (err) {
err.message = `Failed to increment mapview count for user '${user}'. ${err.message}`;
logger.warn({ error: err });
logger.warn({ error: err }, 'Failed to increment mapview count');
}
next();