diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-19 12:10:38 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-19 12:10:38 +0400 |
commit | 4b4c9c35fe2347779d9636b71b4e1fb4456802f3 (patch) | |
tree | b5d237c16893f83874fff36bffe57099deb80375 /src/logger.c | |
parent | 1cad485b678054cbf41302204d981176266c71bc (diff) | |
download | rspamd-4b4c9c35fe2347779d9636b71b4e1fb4456802f3.tar.gz rspamd-4b4c9c35fe2347779d9636b71b4e1fb4456802f3.zip |
* Improve logging
* Write queue id to log
* Remove test messages from cmake
Diffstat (limited to 'src/logger.c')
-rw-r--r-- | src/logger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logger.c b/src/logger.c index 25839d026..19ea767b8 100644 --- a/src/logger.c +++ b/src/logger.c @@ -485,7 +485,7 @@ file_log_function (const gchar * log_domain, const gchar *function, GLogLevelFla now = time (NULL); tms = localtime (&now); - strftime (timebuf, sizeof (timebuf), "%b %d %H:%M:%S", tms); + strftime (timebuf, sizeof (timebuf), "%F %H:%M:%S", tms); switch (rspamd_log->process_type) { case TYPE_MAIN: cptype = "main"; @@ -510,10 +510,10 @@ file_log_function (const gchar * log_domain, const gchar *function, GLogLevelFla break; } if (function == NULL) { - r = rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "#%P(%s): %s rspamd ", rspamd_log->pid, cptype, timebuf); + r = rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "%s #%P(%s) ", timebuf, rspamd_log->pid, cptype); } else { - r = rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "#%P(%s): %s rspamd %s: ", rspamd_log->pid, cptype, timebuf, function); + r = rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "%s #%P(%s) %s: ", timebuf, rspamd_log->pid, cptype, function); } iov[0].iov_base = tmpbuf; iov[0].iov_len = r; |