log: more info

This commit is contained in:
DIYgod
2019-03-27 18:09:37 +08:00
parent fd71316675
commit e3f61bb65c
+1 -1
View File
@@ -45,7 +45,7 @@ module.exports = function(app, options = {}) {
},
set: async function(key, value, maxAge = 24 * 60 * 60) {
if (await this.get(key)) {
logger.warn('repeated key: ', key);
logger.warn('repeated key: ', key, value);
}
if (!value || value === 'undefined') {
value = '';