summaryrefslogtreecommitdiff
path: root/src/journal/test-catalog.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-11 08:44:55 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-12 10:20:55 -0400
commite3b9d9c8027a7c4c55cf1614e0fe9423fad69e8f (patch)
tree96b0e8921231091506b5aff208cc510da4bf4a1b /src/journal/test-catalog.c
parent6e00a80641aaba814204c65365c2fd5a90768394 (diff)
journal: cleanup up error handling in update_catalog()
- Negative/positive errno mixup caused duplicates not to be detected properly. Now we get a warning about some duplicate entries in our own catalogs... - Errors in update_catalog would be ignored, but they should not be.
Diffstat (limited to 'src/journal/test-catalog.c')
-rw-r--r--src/journal/test-catalog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/test-catalog.c b/src/journal/test-catalog.c
index b087a8b81c..967ab6756b 100644
--- a/src/journal/test-catalog.c
+++ b/src/journal/test-catalog.c
@@ -157,7 +157,8 @@ int main(int argc, char *argv[]) {
setlocale(LC_ALL, "de_DE.UTF-8");
- log_set_max_level(LOG_DEBUG);
+ log_parse_environment();
+ log_open();
test_catalog_file_lang();