summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-04-16 23:07:45 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-04-17 00:09:16 -0400
commit21ae45930dab96b794f6faf027ad9ace64bc7b08 (patch)
tree6cce8eb3c138d338c821bfaa2fc742a02b4107c0 /src/journal/journalctl.c
parent44df3e637fdf39b34af841fede9d2edc6172a5cc (diff)
journalctl: show fields requested with --field in full
I see little point in silently truncating fields when they are explictly requested. With this change e.g. journalctl -b MESSAGE_ID=9f26aa562cf440c2b16c773d0479b518 --field=BOOTCHART works as expected.
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 002ff7cda0..c9b2abecea 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -1123,6 +1123,12 @@ int main(int argc, char *argv[]) {
const void *data;
size_t size;
+ r = sd_journal_set_data_threshold(j, 0);
+ if (r < 0) {
+ log_error("Failed to unset data size threshold");
+ return EXIT_FAILURE;
+ }
+
r = sd_journal_query_unique(j, arg_field);
if (r < 0) {
log_error("Failed to query unique data objects: %s", strerror(-r));