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);
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",
"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) {