From 7249ee08700774ccf3c216baef081b7be8055a31 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 15 Jun 2021 14:23:40 +0200 Subject: [PATCH] fix: cache decorate log --- lib/util/cache/package/decorator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/cache/package/decorator.ts b/lib/util/cache/package/decorator.ts index 60fc2590c1..3a355090a8 100644 --- a/lib/util/cache/package/decorator.ts +++ b/lib/util/cache/package/decorator.ts @@ -119,7 +119,7 @@ export function cache<T>({ await packageCache.set(finalNamespace, finalKey, result, ttlMinutes); return result; } catch (err) /* istanbul ignore next */ { - logger.error(err); + logger.error({ err }, 'cache decorate error'); throw err; } }); -- GitLab