Honor @oleurud's comment
This commit is contained in:
parent
219d2c9044
commit
107a97aa9e
@ -235,10 +235,10 @@ function createTemplateMaps ({ redisPool, surrogateKeysCache, logger }) {
|
||||
const startTime = Date.now();
|
||||
surrogateKeysCache.invalidate(new NamedMapsCacheEntry(user, templateName), (err) => {
|
||||
if (err) {
|
||||
return logger.error(err);
|
||||
return logger.error(err, `Named map (${templateName}) invalidation failed, user: ${user}`);
|
||||
}
|
||||
|
||||
logger.info({ user, type: 'named_map_invalidation', elapsed: Date.now() - startTime });
|
||||
logger.info({ user, type: 'named_map_invalidation', elapsed: Date.now() - startTime }, `Named map (${templateName}) invalidation success, user: ${user}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user