diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-14 23:23:54 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-10-14 23:23:54 +0200 |
commit | 9d79926aebf81af7ca33648f992c22374def0922 (patch) | |
tree | e975057d8398951a054ff448576ab40f7bcdb6a9 /debug.c | |
parent | c1b287878d7ae8d146e7054002479e53de47f6cb (diff) | |
download | dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.tar.gz dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.tar.xz dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.zip |
make settings per-plugin
Diffstat (limited to '')
-rw-r--r-- | debug.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -6,14 +6,21 @@ static void _debug(const char *format, va_list ap) { + char *fmt; + + t_push(); + + fmt = t_strconcat(stringify(PLUGINNAME), ": ", format, NULL); + #if defined(DEBUG_SYSLOG) - vsyslog(LOG_DEBUG, format, ap); + vsyslog(LOG_DEBUG, fmt, ap); #elif defined(DEBUG_STDERR) - vfprintf(stderr, format, ap); + vfprintf(stderr, fmt, ap); fflush(stderr); #else #error no logging method #endif + t_pop(); } void debug(const char *fmt, ...) |