Change the log level to debug stopped unit names 44/197544/2
authorseolheui, kim <s414.kim@samsung.com>
Mon, 14 Jan 2019 04:35:57 +0000 (13:35 +0900)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 23 Jan 2019 09:11:02 +0000 (09:11 +0000)
Change-Id: I310f6fffe443b430d3e0e4d5dce6f22fea1c58e1
Signed-off-by: seolheui, kim <s414.kim@samsung.com>
server/internal-encryption.cpp

index 425192a..b2de48a 100644 (file)
@@ -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<std::mutex> 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) {