summaryrefslogtreecommitdiff
path: root/src/core/transaction.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-01 19:48:27 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-01 20:12:59 -0500
commite0f6599411ae957eb4138b3e8bcb0c9ad4911576 (patch)
tree143030ca32f2f1d0ee6e99030b5d409defb5b649 /src/core/transaction.c
parentb288cdeb2d59fc2fa7b79cdcc38d9915fd3b3161 (diff)
core/transaction: also downgrade warning for masked units wanted by followed units
The warning "Cannot add dependency job, ignoring" was downgraded to info in one place, but not in the other. C.f. #5179.
Diffstat (limited to 'src/core/transaction.c')
-rw-r--r--src/core/transaction.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c
index e22e3b30c2..b6d1062414 100644
--- a/src/core/transaction.c
+++ b/src/core/transaction.c
@@ -907,7 +907,10 @@ int transaction_add_job_and_dependencies(
SET_FOREACH(dep, following, i) {
r = transaction_add_job_and_dependencies(tr, type, dep, ret, false, false, false, ignore_order, e);
if (r < 0) {
- log_unit_warning(dep, "Cannot add dependency job for, ignoring: %s", bus_error_message(e, r));
+ log_unit_full(dep,
+ r == -ERFKILL ? LOG_INFO : LOG_WARNING,
+ r, "Cannot add dependency job, ignoring: %s",
+ bus_error_message(e, r));
sd_bus_error_free(e);
}
}