From: seolheui, kim Date: Mon, 14 Jan 2019 04:35:57 +0000 (+0900) Subject: Change the log level to debug stopped unit names X-Git-Tag: submit/tizen_4.0/20190130.090735~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F197544%2F2;p=platform%2Fcore%2Fsecurity%2Fode.git Change the log level to debug stopped unit names Change-Id: I310f6fffe443b430d3e0e4d5dce6f22fea1c58e1 Signed-off-by: seolheui, kim --- 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) {