From 7953f7d05040be9a7c061af1c675107e0f7f1f6e Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 11 Oct 2005 14:44:46 +0000 Subject: [PATCH] disabled chatdbg function cuz it's way too heavy git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@551 9efc2488-bf62-4759-914b-345cdb29e865 --- src/jserver/osrf_chat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jserver/osrf_chat.c b/src/jserver/osrf_chat.c index 98a100d..e399966 100644 --- a/src/jserver/osrf_chat.c +++ b/src/jserver/osrf_chat.c @@ -27,6 +27,7 @@ static int eq(const char* a, const char* b) { return (a && b && !strcmp(a,b)); } static void chatdbg( osrfChatServer* server ) { if(!server) return; + return; /* heavy logging, should only be used in heavy debug mode */ growing_buffer* buf = buffer_init(256); @@ -270,6 +271,7 @@ int osrfChatSend( osrfChatServer* cs, osrfChatNode* node, char* toAddr, char* fr if( eq( dombuf, cs->domain ) ) { /* this is to a user we host */ + info_handler("Sending message on local connection\nfrom: %s\nto: %s", fromAddr, toAddr ); osrfChatNode* tonode = osrfHashGet(cs->nodeHash, toAddr); if(tonode) { osrfChatSendRaw( tonode, msgXML ); @@ -676,6 +678,8 @@ void osrfChatEndElement( void* blob, const xmlChar* name ) { node->remote = va_list_to_string( "%s@%s/%s", node->username, node->domain, node->resource ); + info_handler("%s successfully logged in", node->remote ); + debug_handler("Setting remote address to %s", node->remote ); osrfChatSendRaw( node, OSRF_CHAT_LOGIN_OK ); osrfHashSet( node->parent->nodeHash, node, node->remote ); -- 2.11.0