daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
803fb7
From 5efee680aa8f55c825be62e2e714f88d5c88066b Mon Sep 17 00:00:00 2001
803fb7
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
803fb7
Date: Sun, 15 Mar 2015 12:12:19 -0400
803fb7
Subject: [PATCH] core: remove useless debug message
803fb7
803fb7
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
803fb7
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
803fb7
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
803fb7
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
803fb7
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
803fb7
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
803fb7
Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
803fb7
803fb7
(cherry picked from commit cc3bc3e6203e0c615e31b8b68796362e1385f28a)
803fb7
---
803fb7
 src/core/manager.c | 3 ++-
803fb7
 1 file changed, 2 insertions(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/core/manager.c b/src/core/manager.c
803fb7
index 203a6a0a1..7483a96ec 100644
803fb7
--- a/src/core/manager.c
803fb7
+++ b/src/core/manager.c
803fb7
@@ -844,7 +844,8 @@ static unsigned manager_dispatch_gc_queue(Manager *m) {
803fb7
 
803fb7
                 if (u->gc_marker == gc_marker + GC_OFFSET_BAD ||
803fb7
                     u->gc_marker == gc_marker + GC_OFFSET_UNSURE) {
803fb7
-                        log_unit_debug(u->id, "Collecting %s", u->id);
803fb7
+                        if (u->id)
803fb7
+                                log_unit_debug(u->id, "Collecting %s", u->id);
803fb7
                         u->gc_marker = gc_marker + GC_OFFSET_BAD;
803fb7
                         unit_add_to_cleanup_queue(u);
803fb7
                 }