log: repeated key
This commit is contained in:
@@ -44,6 +44,9 @@ module.exports = function(app, options = {}) {
|
||||
}
|
||||
},
|
||||
set: async (key, value, maxAge = 24 * 60 * 60) => {
|
||||
if (await this.get(key)) {
|
||||
logger.warn('repeated key: ', key);
|
||||
}
|
||||
if (!value || value === 'undefined') {
|
||||
value = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user