MSG: log if we don't find a requested message in the db
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 25 Mar 2013 13:54:44 +0000 (14:54 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 25 Mar 2013 13:54:44 +0000 (14:54 +0100)
citadel/msgbase.c

index 089d50b23edee2a9d5b6e8a603cb26f88a3c65cd..825e8970a9ca9f37d4f88b885377c52be2110701 100644 (file)
@@ -1213,6 +1213,7 @@ struct CtdlMessage *CtdlFetchMessage(long msgnum, int with_body)
        MSG_syslog(LOG_DEBUG, "CtdlFetchMessage(%ld, %d)\n", msgnum, with_body);
        dmsgtext = cdb_fetch(CDB_MSGMAIN, &msgnum, sizeof(long));
        if (dmsgtext == NULL) {
+               MSG_syslog(LOG_ERR, "CtdlFetchMessage(%ld, %d) Failed!\n", msgnum, with_body);
                return NULL;
        }
        mptr = dmsgtext->ptr;