added some temporary logging
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 6 Dec 2011 04:42:01 +0000 (23:42 -0500)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 6 Dec 2011 04:42:01 +0000 (23:42 -0500)
citadel/modules/vcard/serv_vcard.c
citadel/msgbase.c

index 5486e094783a1bc5af878ce03d32d2bdbf40c3cc..9c62b0347e26a6829d395aa87f4efc60d0361be7 100644 (file)
@@ -530,6 +530,7 @@ int vcard_upload_aftersave(struct CtdlMessage *msg) {
                         */
 
                        I = atol(msg->cm_fields['I']);
+                       syslog(LOG_DEBUG, "GAB: \033[35m%s\033[0m", msg->cm_fields['I']);
                        if (I < 0L) return(0);
 
                        /* Store our Internet return address in memory */
index 2442afac9066342cac63bdd115f330c547e937b0..3919cf911c93a2526d71fbb95edecef0e39b5375 100644 (file)
@@ -2595,6 +2595,7 @@ int CtdlSaveMsgPointersInRoom(char *roomname, long newmsgidlist[], int num_newms
                "CtdlSaveMsgPointersInRoom(room=%s, num_msgs=%d, repl=%d, suppress_rca=%d)\n",
                roomname, num_newmsgs, do_repl_check, suppress_refcount_adj
        );
+       if (num_newmsgs > 0) for (i=0; i<num_newmsgs; ++i) syslog(LOG_DEBUG, "\033[33mmerge %ld\033[0m", newmsgidlist[i]);
 
        strcpy(hold_rm, CC->room.QRname);
 
@@ -2641,6 +2642,10 @@ int CtdlSaveMsgPointersInRoom(char *roomname, long newmsgidlist[], int num_newms
                }
                if (unique) {
                        msgs_to_be_merged[num_msgs_to_be_merged++] = newmsgidlist[i];
+                       syslog(LOG_DEBUG, "\033[32mmsg %ld is being merged\033[0m", newmsgidlist[i]);
+               }
+               else {
+                       syslog(LOG_DEBUG, "\033[31mmsg %ld is not unique\033[0m", newmsgidlist[i]);
                }
        }