X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdirectory.cc;h=af71f4025dc002ce9dd4ab757d9b6c54637d861a;hp=eee8254e7a842e18cce933907ccddeac19356474;hb=HEAD;hpb=f4f5db0f1a6e89f56bfd73f8517c1cac7af20290 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,