From e64b0040cd203659265e884989daf23dd1fcc641 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 14 Oct 2014 00:09:12 +0200 Subject: add some more verbose output --- journal-notify.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/journal-notify.c b/journal-notify.c index ea73666..0dbb83a 100644 --- a/journal-notify.c +++ b/journal-notify.c @@ -179,6 +179,8 @@ int main(int argc, char **argv) { fprintf(stderr, "Failed to iterate to next entry: %s\n", strerror(-rc)); goto out40; } else if (rc == 0) { + if (verbose > 2) + printf("Waiting...\n"); if ((rc = sd_journal_wait(journal, (uint64_t) -1)) < 0) { fprintf(stderr, "Failed to wait for changes: %s\n", strerror(-rc)); goto out40; @@ -200,6 +202,9 @@ int main(int argc, char **argv) { } summary = g_markup_escape_text(data + 18, length - 18); + if (verbose > 2) + printf("Received message from journal: %s\n", message); + /* show notification */ if (have_regex == 0 || regexec(®ex, message, 0, NULL, 0) == 0) { for (i = 0; i < 3; i++) { -- cgit v1.2.3-70-g09d2