This commit is contained in:
DIYgod 2019-03-27 18:14:44 +08:00
parent e3f61bb65c
commit ae20bb6731
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, value);
logger.warn(`repeated key: ${key}, ${value}`);
}
if (!value || value === 'undefined') {
value = '';