This is a thin wrapper around the previously implemented string
logging infrastructure. In the future it could have more configurable
output options.
---
lib/database.cc | 14 ++
lib/notmuch-private.h | 4
2 files changed, 18 insertions(+)
diff --git a/lib/database.cc
Obsoletes
id:1419788030-10567-1-git-send-email-da...@tethera.net
The bad news is it is 3 patches longer; the good news is that I think
those patches are just testing and make sense whether we do the rest
or not. The first 4 patches together now have the have the effect
adding a quiet
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.
The idea is to have a logging function setting this string instead of
printing to stderr.
---
lib/database-private.h | 4
lib/database.cc| 7 +++
lib/notmuch.h | 7 +++
3 files changed, 18 insertions(+)
diff --git a/lib/database-private.h b/lib/database-private.h
Unfortunately quite a few of the error handling paths here require
more sophisticated tests using e.g. gdb.
---
test/T560-lib-error.sh | 91 ++
1 file changed, 91 insertions(+)
create mode 100755 test/T560-lib-error.sh
diff --git
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
---
test/T050-new.sh | 7 +++
test/T150-tagging.sh | 6 ++
2 files changed, 13 insertions(+)
diff
This is needed by logging in functions outside message.cc that take
only a notmuch_message_t object.
---
lib/message.cc| 6 ++
lib/notmuch-private.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index 956a70a..b84e5e1 100644
---
The compatibility wrapper ensures that clients calling
notmuch_database_open will receive consistent output for now.
The stdargs based infrastucture will be used in following commits for
a more general logging mechanism.
The changes to notmuch-{new,search} and test/symbol-test are just to
make
Obsoletes
id:1419788030-10567-1-git-send-email-david at tethera.net
The bad news is it is 3 patches longer; the good news is that I think
those patches are just testing and make sense whether we do the rest
or not. The first 4 patches together now have the have the effect
adding a
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
This is to limit the copy-pasta involved in running C tests. I decided
to keep things simple and not try to provide an actual C skeleton.
The setting of LD_LIBRARY_PATH is to force using the built libnotmuch
rather than any potential system one.
---
test/README | 5 +
test/test-lib.sh
This is a thin wrapper around the previously implemented string
logging infrastructure. In the future it could have more configurable
output options.
---
lib/database.cc | 14 ++
lib/notmuch-private.h | 4
2 files changed, 18 insertions(+)
diff --git a/lib/database.cc
Unfortunately quite a few of the error handling paths here require
more sophisticated tests using e.g. gdb.
---
test/T560-lib-error.sh | 91 ++
1 file changed, 91 insertions(+)
create mode 100755 test/T560-lib-error.sh
diff --git
This is needed by logging in functions outside message.cc that take
only a notmuch_message_t object.
---
lib/message.cc| 6 ++
lib/notmuch-private.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/lib/message.cc b/lib/message.cc
index 956a70a..b84e5e1 100644
---
You may wonder why _notmuch_message_file_open_ctx has two parameters.
This is because we need sometime to use a ctx which is a
notmuch_message_t. While we could get the database from this, there is
no easy way in C to tell type we are getting. The remaining fprintf is
removed by Jani's series
The idea is to have a logging function setting this string instead of
printing to stderr.
---
lib/database-private.h | 4
lib/database.cc| 7 +++
lib/notmuch.h | 7 +++
3 files changed, 18 insertions(+)
diff --git a/lib/database-private.h b/lib/database-private.h
The compatibility wrapper ensures that clients calling
notmuch_database_open will receive consistent output for now.
The stdargs based infrastucture will be used in following commits for
a more general logging mechanism.
The changes to notmuch-{new,search} and test/symbol-test are just to
make
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
---
test/T050-new.sh | 7 +++
test/T150-tagging.sh | 6 ++
2 files changed, 13 insertions(+)
diff
18 matches
Mail list logo