X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fdatabase.c;h=e2654b6e65fb010219e41d8807a1df2842579774;hb=b67d55104f43ee422e5f0ad1108bf6ba8f39bdd4;hp=cdc732cdc8082e90d197d861bdc35889c549942f;hpb=156d3eaa1b5d85cb70a79046bd874ab832df6ff1;p=citadel.git diff --git a/citadel/database.c b/citadel/database.c index cdc732cdc..e2654b6e6 100644 --- a/citadel/database.c +++ b/citadel/database.c @@ -89,6 +89,7 @@ void cdb_verbose_log(const DB_ENV *dbenv, const char *msg) { if (!IsEmptyStr(msg)) { syslog(LOG_DEBUG, "DB: %s", msg); + cit_backtrace(); } } @@ -97,6 +98,7 @@ void cdb_verbose_log(const DB_ENV *dbenv, const char *msg) void cdb_verbose_err(const DB_ENV *dbenv, const char *errpfx, const char *msg) { syslog(LOG_ALERT, "DB: %s", msg); + cit_backtrace(); } @@ -142,6 +144,7 @@ static void txbegin(DB_TXN ** tid) static void dbpanic(DB_ENV * env, int errval) { syslog(LOG_EMERG, "bdb(): PANIC: %s", db_strerror(errval)); + cit_backtrace(); } static void cclose(DBC * cursor)