aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-02 21:15:11 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-02 21:15:11 -0400
commitd03c8058f603ea5626998f7b466988e9192703e1 (patch)
tree1322731467ce91fbe1355a2b0da5430a17bfe641 /src
parent4a4cdd2e67c1b46402e27377877c54c018c1650f (diff)
downloadmysqlerl-d03c8058f603ea5626998f7b466988e9192703e1.tar.gz
mysqlerl-d03c8058f603ea5626998f7b466988e9192703e1.zip
Redact password from log output.
Diffstat (limited to 'src')
-rw-r--r--src/mysqlerl.c4
1 files changed, 2 insertions, 2 deletions
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);
}