Zbigniew Jędrzejewski-Szmek ea1976
From bf50845d2c7ebba254ae91b280086701503cf7b9 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek ea1976
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Zbigniew Jędrzejewski-Szmek ea1976
Date: Sun, 2 Nov 2014 12:10:42 -0500
Zbigniew Jędrzejewski-Szmek ea1976
Subject: [PATCH] Raise level of 'Found dependency...' lines
Zbigniew Jędrzejewski-Szmek ea1976
Zbigniew Jędrzejewski-Szmek ea1976
This way they always show up together with 'Found ordering cycle...'.
Zbigniew Jędrzejewski-Szmek ea1976
Ordering cycles are a serious error and a major pain to debug. If
Zbigniew Jędrzejewski-Szmek ea1976
quiet is enabled, only the first and the last line of output are
Zbigniew Jędrzejewski-Szmek ea1976
shown:
Zbigniew Jędrzejewski-Szmek ea1976
Zbigniew Jędrzejewski-Szmek ea1976
systemd[1]: Found ordering cycle on basic.target/start
Zbigniew Jędrzejewski-Szmek ea1976
systemd[1]: Breaking ordering cycle by deleting job timers.target/start
Zbigniew Jędrzejewski-Szmek ea1976
systemd[1]: Job timers.target/start deleted to break ordering cycle starting with basic.target/start
Zbigniew Jędrzejewski-Szmek ea1976
Zbigniew Jędrzejewski-Szmek ea1976
which isn't particularly enlightening. So just show the whole message
Zbigniew Jędrzejewski-Szmek ea1976
at the same level.
Zbigniew Jędrzejewski-Szmek ea1976
Zbigniew Jędrzejewski-Szmek ea1976
https://bugzilla.redhat.com/show_bug.cgi?id=1158206
Zbigniew Jędrzejewski-Szmek ea1976
(cherry picked from commit 14fe721b5f6d8457cc8737fa75f2ed79e7fa534b)
Zbigniew Jędrzejewski-Szmek ea1976
---
Zbigniew Jędrzejewski-Szmek ea1976
 src/core/transaction.c | 6 +++---
Zbigniew Jędrzejewski-Szmek ea1976
 1 file changed, 3 insertions(+), 3 deletions(-)
Zbigniew Jędrzejewski-Szmek ea1976
Zbigniew Jędrzejewski-Szmek ea1976
diff --git a/src/core/transaction.c b/src/core/transaction.c
Zbigniew Jędrzejewski-Szmek ea1976
index dbb4133fe3..91f5ee18df 100644
Zbigniew Jędrzejewski-Szmek ea1976
--- a/src/core/transaction.c
Zbigniew Jędrzejewski-Szmek ea1976
+++ b/src/core/transaction.c
Zbigniew Jędrzejewski-Szmek ea1976
@@ -377,9 +377,9 @@ static int transaction_verify_order_one(Transaction *tr, Job *j, Job *from, unsi
Zbigniew Jędrzejewski-Szmek ea1976
                 for (k = from; k; k = ((k->generation == generation && k->marker != k) ? k->marker : NULL)) {
Zbigniew Jędrzejewski-Szmek ea1976
 
Zbigniew Jędrzejewski-Szmek ea1976
                         /* logging for j not k here here to provide consistent narrative */
Zbigniew Jędrzejewski-Szmek ea1976
-                        log_info_unit(j->unit->id,
Zbigniew Jędrzejewski-Szmek ea1976
-                                      "Found dependency on %s/%s",
Zbigniew Jędrzejewski-Szmek ea1976
-                                      k->unit->id, job_type_to_string(k->type));
Zbigniew Jędrzejewski-Szmek ea1976
+                        log_warning_unit(j->unit->id,
Zbigniew Jędrzejewski-Szmek ea1976
+                                         "Found dependency on %s/%s",
Zbigniew Jędrzejewski-Szmek ea1976
+                                         k->unit->id, job_type_to_string(k->type));
Zbigniew Jędrzejewski-Szmek ea1976
 
Zbigniew Jędrzejewski-Szmek ea1976
                         if (!delete && hashmap_get(tr->jobs, k->unit) &&
Zbigniew Jędrzejewski-Szmek ea1976
                             !unit_matters_to_anchor(k->unit, k)) {