From d80280e35d8947ee866df6c15dec810767bf30b2 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:11:51 +0200 Subject: [PATCH] startup: do not print postgres connection string, closes #523 (#540) --- cashu/mint/startup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cashu/mint/startup.py b/cashu/mint/startup.py index a158cabc..e66be504 100644 --- a/cashu/mint/startup.py +++ b/cashu/mint/startup.py @@ -36,6 +36,10 @@ "mint_corelightning_rest_macaroon", ]: value = "********" if value is not None else None + + if key == "mint_database" and value and value.startswith("postgres://"): + value = "postgres://********" + logger.debug(f"{key}: {value}") wallets_module = importlib.import_module("cashu.lightning")