From ede07b5bec9a17f2fe208abdf12e72209b79780c Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Sun, 26 Oct 2008 00:54:21 +0000 Subject: added time stamps to log --- utility/database.c | 2 +- utility/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'utility') diff --git a/utility/database.c b/utility/database.c index 0d1d4f7..af8db97 100644 --- a/utility/database.c +++ b/utility/database.c @@ -39,7 +39,7 @@ apr_status_t database_connect(config_t *cfg) &(cfg->dbconn->dbd)); if (rv) { logging_log(cfg, LOGLEVEL_ERROR, - "DB: Could not connect to database. Error %s", logging_strerror(rv)); + "DB: Could not connect to database. Error (%d)%s", rv, logging_strerror(rv)); return rv; } diff --git a/utility/util.c b/utility/util.c index d8502fc..dcfb028 100644 --- a/utility/util.c +++ b/utility/util.c @@ -179,7 +179,7 @@ void logging_log(config_t *cfg, loglevel_e level, const char *fmt, ...) vec[3].iov_len = 1; if (level == LOGLEVEL_NOISE) { - apr_file_writev(cfg->errorlog_fperr,vec,4,&blen); + apr_file_writev(cfg->errorlog_fperr,&vec[2],2,&blen); } if (cfg->loglevel > LOGLEVEL_NONE && cfg->errorlog_fp) { apr_file_writev(cfg->errorlog_fp,vec,4,&blen); -- cgit