X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=unit.c;h=93c0d8d61a29bb442550d419e2331cbb5afb12c1;hb=ee2b489421ce8b47c08fb42c598c5af47043a9f9;hp=1a0225a6334f0766828f27a5515152d24221b8fe;hpb=f278026d21e2ded46f7f91152d60842525e74956;p=elogind.git diff --git a/unit.c b/unit.c index 1a0225a63..93c0d8d61 100644 --- a/unit.c +++ b/unit.c @@ -923,13 +923,13 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) { if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE)) /* The syslog daemon just got started, hence try to connect to it. */ - log_info("Syslog now available, this is where we should start logging to it."); + log_open_syslog(); } else if (UNIT_IS_ACTIVE_OR_RELOADING(os) && !UNIT_IS_ACTIVE_OR_RELOADING(ns)) { if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE)) /* The syslog daemon just got terminated, hence try to disconnect from it. */ - log_info("Syslog now gone, this is where we should stio logging to it."); + log_close_syslog(); /* We don't care about D-Bus here, since we'll get an * asynchronous notification for it anyway. */