disabled chatdbg function cuz it's way too heavy
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 11 Oct 2005 14:44:46 +0000 (14:44 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 11 Oct 2005 14:44:46 +0000 (14:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1909 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/jserver/osrf_chat.c

index 98a100d..e399966 100644 (file)
@@ -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 );