anitazha / rpms / systemd

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