From c6b2e90626d38079332ea21bae00eaa81164424c Mon Sep 17 00:00:00 2001 From: "seolheui, kim" Date: Mon, 14 Jan 2019 13:35:57 +0900 Subject: [PATCH] Change the log level to debug stopped unit names Change-Id: I310f6fffe443b430d3e0e4d5dce6f22fea1c58e1 Signed-off-by: seolheui, kim --- server/internal-encryption.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/internal-encryption.cpp b/server/internal-encryption.cpp index 425192a..b2de48a 100644 --- a/server/internal-encryption.cpp +++ b/server/internal-encryption.cpp @@ -136,7 +136,7 @@ void JobWatch::jobRemoved(const dbus::Variant& parameters) const char* unit; const char* result; parameters.get("(uoss)", &id, &job, &unit, &result); - INFO(SINK, "id:" + std::to_string(id) + " job:" + job + " unit:" + unit + " result:" + result); + WARN(SINK, "id:" + std::to_string(id) + " job:" + job + " unit:" + unit + " result:" + result); { std::lock_guard guard(jobsMutex); @@ -154,7 +154,7 @@ void stopSystemdUnits() auto stopUnit = [&systemDBus](const std::string &unit) { JobWatch watch(systemDBus); - INFO(SINK, "Stopping unit: " + unit); + WARN(SINK, "Stopping unit: " + unit); const char* job = NULL; try { systemDBus.methodcall("org.freedesktop.systemd1", @@ -162,7 +162,7 @@ void stopSystemdUnits() "org.freedesktop.systemd1.Manager", "StopUnit", -1, "(o)", "(ss)", unit.c_str(), "flush").get("(o)", &job); - INFO(SINK, "Waiting for job: " + std::string(job)); + WARN(SINK, "Waiting for job: " + std::string(job)); if (!watch.waitForJob(job)) ERROR(SINK, "Stopping unit: " + unit + " failed"); } catch (runtime::Exception &e) { -- 2.7.4