diff options
| author | David Bremner <david@tethera.net> | 2014-12-26 17:25:35 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-03-29 00:34:15 +0100 |
| commit | 736ac26407914425a9c94e86616225292cf716dd (patch) | |
| tree | 641ae3fdb6f28233573aa6248796b30421d535f5 /lib/directory.cc | |
| parent | 9b73a8bcc9cb381fc1a15013f4baa3ec9fdb97a7 (diff) | |
lib: replace almost all fprintfs in library with _n_d_log
This is not supposed to change any functionality from an end user
point of view. Note that it will eliminate some output to stderr. The
query debugging output is left as is; it doesn't really fit with the
current primitive logging model. The remaining "bad" fprintf will need
an internal API change.
Diffstat (limited to 'lib/directory.cc')
| -rw-r--r-- | lib/directory.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/directory.cc b/lib/directory.cc index 8daaec8e..b836ea28 100644 --- a/lib/directory.cc +++ b/lib/directory.cc @@ -186,7 +186,7 @@ _notmuch_directory_create (notmuch_database_t *notmuch, directory->mtime = Xapian::sortable_unserialise ( directory->doc.get_value (NOTMUCH_VALUE_TIMESTAMP)); } catch (const Xapian::Error &error) { - fprintf (stderr, + _notmuch_database_log (notmuch, "A Xapian exception occurred creating a directory: %s.\n", error.get_msg().c_str()); notmuch->exception_reported = TRUE; @@ -228,7 +228,7 @@ notmuch_directory_set_mtime (notmuch_directory_t *directory, db->replace_document (directory->document_id, directory->doc); } catch (const Xapian::Error &error) { - fprintf (stderr, + _notmuch_database_log (notmuch, "A Xapian exception occurred setting directory mtime: %s.\n", error.get_msg().c_str()); notmuch->exception_reported = TRUE; |
