mirror of
https://github.com/outline/outline.git
synced 2026-12-02 09:42:07 +03:00
fix: Move redis retry attempt number out of log message (#14807)
This commit is contained in:
1 parent
be0e2c882c
commit
a434dd66e5
1 file changed
+2
-2
@@ -20,9 +20,9 @@ const defaultOptions: RedisOptions = {
|
||||
|
||||
retryStrategy(times: number) {
|
||||
if (times === 1) {
|
||||
Logger.info("lifecycle", `Retrying redis connection: attempt ${times}`);
|
||||
Logger.info("lifecycle", "Retrying redis connection", { attempt: times });
|
||||
} else {
|
||||
Logger.warn(`Retrying redis connection: attempt ${times}`);
|
||||
Logger.warn("Retrying redis connection", { attempt: times });
|
||||
}
|
||||
return Math.min(times * 500, 3000);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user