* Suppress display of zero-length Berkeley DB log messages
authorArt Cancro <ajc@citadel.org>
Fri, 19 Dec 2008 03:45:02 +0000 (03:45 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 19 Dec 2008 03:45:02 +0000 (03:45 +0000)
citadel/database.c

index 891e31fb54eb294e9cbcff9f1db97f1940937512..9aa870091d6f1dc4684e20617a9149823cff6305 100644 (file)
@@ -69,7 +69,9 @@ static DB_ENV *dbenv;         /* The DB environment (global) */
 /* Verbose logging callback */
 void cdb_verbose_log(const DB_ENV *dbenv, const char *msg)
 {
-       CtdlLogPrintf(CTDL_DEBUG, "BDB: %s\n", msg);
+       if (!IsEmptyStr(msg)) {
+               CtdlLogPrintf(CTDL_DEBUG, "DB: %s\n", msg);
+       }
 }