lifecycle: fix incorrect messages looped

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-11-12 16:50:01 +01:00
parent 5d8dd9cf3f
commit ee6dc45a30
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ while True:
except OperationalError as exc: except OperationalError as exc:
sleep(1) sleep(1)
CONFIG.log("info", f"PostgreSQL connection failed, retrying... ({exc})") CONFIG.log("info", f"PostgreSQL connection failed, retrying... ({exc})")
CONFIG.log("info", "PostgreSQL connection successful") CONFIG.log("info", "PostgreSQL connection successful")
REDIS_PROTOCOL_PREFIX = "redis://" REDIS_PROTOCOL_PREFIX = "redis://"
if CONFIG.y_bool("redis.tls", False): if CONFIG.y_bool("redis.tls", False):
@ -53,6 +53,6 @@ while True:
except RedisError as exc: except RedisError as exc:
sleep(1) sleep(1)
CONFIG.log("info", f"Redis Connection failed, retrying... ({exc})", redis_url=REDIS_URL) CONFIG.log("info", f"Redis Connection failed, retrying... ({exc})", redis_url=REDIS_URL)
CONFIG.log("info", "Redis Connection successful") CONFIG.log("info", "Redis Connection successful")
CONFIG.log("info", "Finished authentik bootstrap") CONFIG.log("info", "Finished authentik bootstrap")