log: more info

This commit is contained in:
DIYgod 2019-03-27 18:09:37 +08:00
parent fd71316675
commit e3f61bb65c
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

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 = '';