diff options
author | Edward Rudd | 2008-10-26 00:54:21 +0000 |
---|---|---|
committer | Edward Rudd | 2008-10-26 00:54:21 +0000 |
commit | ede07b5bec9a17f2fe208abdf12e72209b79780c (patch) | |
tree | fd62cc0a9c42ea49a7f7a3461ba23c691142b3a8 /utility | |
parent | 3d5a1f43edfe4f45e77072813e2a361305d17133 (diff) |
added time stamps to log
Diffstat (limited to 'utility')
-rw-r--r-- | utility/database.c | 2 | ||||
-rw-r--r-- | utility/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) | |||
39 | &(cfg->dbconn->dbd)); | 39 | &(cfg->dbconn->dbd)); |
40 | if (rv) { | 40 | if (rv) { |
41 | logging_log(cfg, LOGLEVEL_ERROR, | 41 | logging_log(cfg, LOGLEVEL_ERROR, |
42 | "DB: Could not connect to database. Error %s", logging_strerror(rv)); | 42 | "DB: Could not connect to database. Error (%d)%s", rv, logging_strerror(rv)); |
43 | return rv; | 43 | return rv; |
44 | } | 44 | } |
45 | 45 | ||
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, ...) | |||
179 | vec[3].iov_len = 1; | 179 | vec[3].iov_len = 1; |
180 | 180 | ||
181 | if (level == LOGLEVEL_NOISE) { | 181 | if (level == LOGLEVEL_NOISE) { |
182 | apr_file_writev(cfg->errorlog_fperr,vec,4,&blen); | 182 | apr_file_writev(cfg->errorlog_fperr,&vec[2],2,&blen); |
183 | } | 183 | } |
184 | if (cfg->loglevel > LOGLEVEL_NONE && cfg->errorlog_fp) { | 184 | if (cfg->loglevel > LOGLEVEL_NONE && cfg->errorlog_fp) { |
185 | apr_file_writev(cfg->errorlog_fp,vec,4,&blen); | 185 | apr_file_writev(cfg->errorlog_fp,vec,4,&blen); |