Honor @oleurud's comment

This commit is contained in:
Daniel García Aubert 2020-06-03 15:11:08 +02:00
parent 219d2c9044
commit 107a97aa9e

View File

@ -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}`);
});
}