summaryrefslogtreecommitdiff
path: root/src/journal/journal-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-02 23:37:05 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-03 00:02:00 +0100
commit5768d2594940668506bb4cafa078f654cc20dc5a (patch)
tree67335560fb4b17959fe2b55b54084d47d004e33d /src/journal/journal-internal.h
parentd617408ecbe69db69aefddfcb10a6c054ea46ba0 (diff)
journalctl: when we fail to open a journal file, print why
When we enumerate journal files and encounter an invalid one, remember which this, and show it to the user. Note the possibly slightly surprising logic here: we store only one path per error code. This means we show all error kinds but not every actual error we encounter. This has the benefit of not requiring us to keep a potentially unbounded list of errors with their sources around, but can still provide a pretty complete overview on the errors we encountered. Fixes #1669.
Diffstat (limited to 'src/journal/journal-internal.h')
-rw-r--r--src/journal/journal-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-internal.h b/src/journal/journal-internal.h
index 1221799c1d..06847402e0 100644
--- a/src/journal/journal-internal.h
+++ b/src/journal/journal-internal.h
@@ -121,7 +121,7 @@ struct sd_journal {
Hashmap *directories_by_path;
Hashmap *directories_by_wd;
- Set *errors;
+ Hashmap *errors;
};
char *journal_make_match_string(sd_journal *j);