X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdirectory.cc;h=5cf64d7fc4021748b8d686cf36ed758741161db0;hb=f25e48e0234a050cab38306a066605a0f8bd3d12;hp=eee8254e7a842e18cce933907ccddeac19356474;hpb=f4f5db0f1a6e89f56bfd73f8517c1cac7af20290;p=notmuch diff --git a/lib/directory.cc b/lib/directory.cc index eee8254e..5cf64d7f 100644 --- a/lib/directory.cc +++ b/lib/directory.cc @@ -52,8 +52,10 @@ struct _notmuch_directory { #define LOG_XAPIAN_EXCEPTION(directory, error) _log_xapian_exception (__location__, directory, error) static void -_log_xapian_exception (const char *where, notmuch_directory_t *dir, const Xapian::Error error) { +_log_xapian_exception (const char *where, notmuch_directory_t *dir, const Xapian::Error error) +{ notmuch_database_t *notmuch = dir->notmuch; + _notmuch_database_log (notmuch, "A Xapian exception occurred at %s: %s\n", where,