dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
Zbigniew Jędrzejewski-Szmek 62fe94
From 36202fd2bc252616966166c98ccb0e0e5ece1fc9 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: Lennart Poettering <lennart@poettering.net>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Tue, 26 Aug 2014 21:47:46 +0200
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] sd-journal: never log anything by default from a library
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 src/journal/sd-journal.c | 2 +-
Zbigniew Jędrzejewski-Szmek 62fe94
 1 file changed, 1 insertion(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
Zbigniew Jędrzejewski-Szmek 62fe94
index b9ec90230d..80ff8fef57 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/src/journal/sd-journal.c
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/src/journal/sd-journal.c
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -2557,7 +2557,7 @@ _public_ int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_
Zbigniew Jędrzejewski-Szmek 62fe94
 
Zbigniew Jędrzejewski-Szmek 62fe94
                 /* Let's do the type check by hand, since we used 0 context above. */
Zbigniew Jędrzejewski-Szmek 62fe94
                 if (o->object.type != OBJECT_DATA) {
Zbigniew Jędrzejewski-Szmek 62fe94
-                        log_error("%s:offset " OFSfmt ": object has type %d, expected %d",
Zbigniew Jędrzejewski-Szmek 62fe94
+                        log_debug("%s:offset " OFSfmt ": object has type %d, expected %d",
Zbigniew Jędrzejewski-Szmek 62fe94
                                   j->unique_file->path, j->unique_offset,
Zbigniew Jędrzejewski-Szmek 62fe94
                                   o->object.type, OBJECT_DATA);
Zbigniew Jędrzejewski-Szmek 62fe94
                         return -EBADMSG;