add whether we're in which eventloop / a worker thread to the log output.
[citadel.git] / citadel / modules / imap / serv_imap.h
index 371dbeb2ef3e772782ca6a26c4a7b47b6ff69727..aa3ab2cdea464403b9e25196da4b5d4be8596891 100644 (file)
@@ -108,15 +108,15 @@ extern int IMAPDebugEnabled;
 
 #define IMAPDBGLOG(LEVEL) if ((LEVEL != LOG_DEBUG) || (IMAPDebugEnabled != 0))
 #define CCCID CCC->cs_pid
-#define IMAP_syslog(LEVEL, FORMAT, ...)                        \
-       IMAPDBGLOG(LEVEL) syslog(LEVEL,                 \
-                                "IMAPCC[%d] " FORMAT,  \
-                                CCCID, __VA_ARGS__)
-
-#define IMAPM_syslog(LEVEL, FORMAT)                    \
-       IMAPDBGLOG(LEVEL) syslog(LEVEL,                 \
-                                "IMAPCC[%d] " FORMAT,  \
-                                CCCID)
+#define IMAP_syslog(LEVEL, FORMAT, ...)                                \
+       IMAPDBGLOG(LEVEL) syslog(LEVEL,                         \
+                                "IMAP %s CC[%d] " FORMAT,      \
+                                IOSTR, CCCID, __VA_ARGS__)
+
+#define IMAPM_syslog(LEVEL, FORMAT)                            \
+       IMAPDBGLOG(LEVEL) syslog(LEVEL,                         \
+                                "IMAP %s CC[%d] " FORMAT,      \
+                                IOSTR, CCCID)
 
 #define I_FLAG_NONE          (0)
 #define I_FLAG_LOGGED_IN  (1<<0)