mirror of
https://github.com/coturn/coturn.git
synced 2025-10-26 04:21:00 +01:00
use santisied psql string (#1144)
Noticed the plaintext password of my postgresql server in my coturn logs, but postgresql errors would return the password sanitised. Simple fix to log the sanitised string.  Signed-off-by: r3g_5z <june@girlboss.ceo> Signed-off-by: r3g_5z <june@girlboss.ceo>
This commit is contained in:
parent
8f8038a7fb
commit
212e782355
@ -82,7 +82,7 @@ static PGconn *get_pqdb_connection(void) {
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Cannot open PostgreSQL DB connection: <%s>, runtime error\n",
|
||||
pud->userdb_sanitized);
|
||||
} else if (!donot_print_connection_success) {
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "PostgreSQL DB connection success: %s\n", pud->userdb);
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "PostgreSQL DB connection success: %s\n", pud->userdb_sanitized);
|
||||
donot_print_connection_success = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user