From d03c8058f603ea5626998f7b466988e9192703e1 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Wed, 2 Apr 2008 21:15:11 -0400 Subject: Redact password from log output. --- src/mysqlerl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mysqlerl.c b/src/mysqlerl.c index de2520d..ff24b64 100644 --- a/src/mysqlerl.c +++ b/src/mysqlerl.c @@ -482,8 +482,8 @@ main(int argc, char *argv[]) mysql_init(&dbh); if (mysql_real_connect(&dbh, host, user, passwd, db_name, atoi(port), NULL, 0) == NULL) { - logmsg("ERROR: Failed to connect to database %s: %s (%s:%s).", - db_name, mysql_error(&dbh), user, passwd); + logmsg("ERROR: Failed to connect to database %s as %s: %s.", + db_name, user, mysql_error(&dbh)); exit(2); } -- cgit v1.2.3