summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-24 22:43:33 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-03 18:59:04 -0700
commit81270860a5b8c6794f0c7bac8becfdd0c41a9385 (patch)
tree33d6c9acf4c6b1f6881c777309f02aec7ea33625 /src/core/unit.c
parent877d54e9b09e093c2102f519a84e2a52637ae035 (diff)
journal: suppress structured messages if they'd go to the console
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 8246837658..ba4c7d5b32 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -1004,6 +1004,9 @@ static void unit_status_log_starting_stopping_reloading(Unit *u, JobType t) {
if (t != JOB_START && t != JOB_STOP && t != JOB_RELOAD)
return;
+ if (log_on_console())
+ return;
+
/* We log status messages for all units and all operations. */
format = unit_get_status_message_format_try_harder(u, t);