Skip to content

Commit

Permalink
startup: do not print postgres connection string, closes #523 (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc authored Jun 5, 2024
1 parent 61cf7de commit d80280e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cashu/mint/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d80280e

Please sign in to comment.