projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f637726
)
journalctl: improve error message when we have trouble reading journal files
author
Lennart Poettering
<lennart@poettering.net>
Sun, 24 Apr 2016 22:25:04 +0000
(
00:25
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 25 Apr 2016 10:00:03 +0000
(12:00 +0200)
Let's output the actual error code encountered, and let's not claim this was
purely triggered by files, because it can also be triggered by directories.
src/journal/journalctl.c
patch
|
blob
|
history
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index
c9a2c38
..
dcd709b
100644
(file)
--- a/
src/journal/journalctl.c
+++ b/
src/journal/journalctl.c
@@
-1847,7
+1847,7
@@
static int access_check(sd_journal *j) {
break;
default:
- log_warning_errno(err, "An error was encountered while opening journal file
%s, ignoring file.
", path);
+ log_warning_errno(err, "An error was encountered while opening journal file
or directory %s, ignoring file: %m
", path);
break;
}
}