diff mcabber/libjabber/jconn.c @ 374:bd5638c21834

Improve logging system (traces) There are now two trace logging levels: * tracelog_level = 1: Most messages from the log window are written to disk (LPRINT_LOG) * tracelog_level =2: LPRINT_LOG & LPRINT_DEBUG messages are written to disk The trace file name is set with the "tracelog_file" option.
author Mikael Berthe <mikael@lilotux.net>
date Mon, 25 Jul 2005 21:46:35 +0100
parents 99a99a160113
children 17aa60c6dc63
line wrap: on
line diff
--- a/mcabber/libjabber/jconn.c	Mon Jul 25 19:40:17 2005 +0100
+++ b/mcabber/libjabber/jconn.c	Mon Jul 25 21:46:35 2005 +0100
@@ -20,7 +20,7 @@
 #include "jabber.h"
 #include "connwrap.h"
 
-#include "../src/utils.h"
+#include "../src/logprint.h"  /* For logging */
 
 /* local macros for launching event handlers */
 #define STATE_EVT(arg) if(j->on_state) { (j->on_state)(j, (arg) ); }
@@ -370,7 +370,8 @@
 	/* Don't disconnect for interrupted system call */
 	if(errno == EINTR) return;
 
-	ut_WriteLog("jab_poll: select returned errno=%d\n", errno);
+	scr_LogPrint(LPRINT_LOGNORM, "jab_poll: select returned errno=%d",
+                     errno);
 	STATE_EVT(JCONN_STATE_OFF);
 	jab_stop(j);