Logger: rename level => levelname to avoid name collision

This commit is contained in:
Daniel García Aubert 2020-07-21 17:09:19 +02:00
parent 3937b8c271
commit b60a69e7d2
2 changed files with 3 additions and 3 deletions

View File

@ -18,10 +18,10 @@ module.exports = class Logger {
formatters: {
level (label) {
if (label === 'warn') {
return { level: 'warning' };
return { levelname: 'warning' };
}
return { level: label };
return { levelname: label };
}
},
messageKey: 'message',

2
package-lock.json generated
View File

@ -814,7 +814,7 @@
"integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo="
},
"camshaft": {
"version": "github:cartodb/camshaft#0d64ad11d61b860682eef2cb2980aa9f8a97fe5f",
"version": "github:cartodb/camshaft#85082160a8c936e0521965b095e39349c652e4f5",
"from": "github:cartodb/camshaft#feature/ch91877/remove-log-aggregation-in-metro",
"requires": {
"async": "^1.5.2",