projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the logging facility from citserver, use syslog instead
[citadel.git]
/
citadel
/
modules
/
xmpp
/
xmpp_presence.c
diff --git
a/citadel/modules/xmpp/xmpp_presence.c
b/citadel/modules/xmpp/xmpp_presence.c
index cef4661f5083302309402c63ba03974bf7a3f402..2ef90858c0e25fd0c9c5a169959bfdef0624515e 100644
(file)
--- a/
citadel/modules/xmpp/xmpp_presence.c
+++ b/
citadel/modules/xmpp/xmpp_presence.c
@@
-184,12
+184,12
@@
void xmpp_presence_notify(char *presence_jid, int event_type) {
}
}
}
}
-
CtdlLogPrintf(CTDL
_DEBUG, "%d sessions for <%s> are now visible to session %d\n",
+
syslog(LOG
_DEBUG, "%d sessions for <%s> are now visible to session %d\n",
visible_sessions, presence_jid, CC->cs_pid);
if ( (event_type == XMPP_EVT_LOGIN) && (visible_sessions == 1) ) {
visible_sessions, presence_jid, CC->cs_pid);
if ( (event_type == XMPP_EVT_LOGIN) && (visible_sessions == 1) ) {
-
CtdlLogPrintf(CTDL
_DEBUG, "Telling session %d that <%s> logged in\n",
+
syslog(LOG
_DEBUG, "Telling session %d that <%s> logged in\n",
CC->cs_pid, presence_jid);
/* Do an unsolicited roster update that adds a new contact. */
CC->cs_pid, presence_jid);
/* Do an unsolicited roster update that adds a new contact. */
@@
-204,7
+204,7
@@
void xmpp_presence_notify(char *presence_jid, int event_type) {
}
if (visible_sessions == 0) {
}
if (visible_sessions == 0) {
-
CtdlLogPrintf(CTDL
_DEBUG, "Telling session %d that <%s> logged out\n",
+
syslog(LOG
_DEBUG, "Telling session %d that <%s> logged out\n",
CC->cs_pid, presence_jid);
xmpp_destroy_buddy(presence_jid);
}
CC->cs_pid, presence_jid);
xmpp_destroy_buddy(presence_jid);
}
@@
-261,7
+261,7
@@
void xmpp_fetch_mortuary_backend(long msgnum, void *userdata) {
HashList *xmpp_fetch_mortuary(void) {
HashList *mortuary = NewHash(1, NULL);
if (!mortuary) {
HashList *xmpp_fetch_mortuary(void) {
HashList *mortuary = NewHash(1, NULL);
if (!mortuary) {
-
CtdlLogPrintf(CTDL
_ALERT, "NewHash() failed!\n");
+
syslog(LOG
_ALERT, "NewHash() failed!\n");
return(NULL);
}
return(NULL);
}