return false;});
if (timeout) {
- INFO(SINK, "job: " + job + ", result: time out");
+ ERROR(SINK, "job: " + job + ", result: time out");
return false;
}
"ListUnits",
-1, "(a(ssssssouso))", "").get("(a(ssssssouso))", &iter);
} catch (runtime::Exception &e) {
- INFO(SINK, "Get list of systemd unit : " + std::string(e.what()));
+ ERROR(SINK, "Get list of systemd unit : " + std::string(e.what()));
}
while (1) {
auto unescapedName = getDecodedPath(unit, "/org/freedesktop/systemd1/unit/");
unitsToStop.insert(unescapedName);
} catch (runtime::Exception &e) {
- INFO(SINK, "Killing process: " + std::to_string(pid));
+ ERROR(SINK, "Killing process: " + std::to_string(pid));
::kill(pid, SIGKILL);
}
}
// encrypt the master key with given password
return keyServer.changePassword2(dev, masterKey, password);
} catch (const runtime::Exception&) {
- INFO("Failed to load the master key stored during upgrade.");
+ ERROR(SINK, "Failed to load the master key stored during upgrade.");
}
return error::Unknown;
// check if upgrade flag exists
if (UpgradeSupport::checkUpgradeFlag()) {
- INFO("Upgrade flag detected.");
+ INFO(SINK, "Upgrade flag detected.");
int rc = migrateMasterKey(dev, password);
if (rc != error::None)
mountKey.clear();
if (getState() != State::Encrypted) {
- INFO(SINK, "Cannot mount, SD partition's state incorrect.");
+ ERROR(SINK, "Cannot mount, SD partition's state incorrect.");
return error::NoSuchDevice;
}
if (engine->isMounted()) {
- INFO(SINK, "Partition already mounted.");
+ ERROR(SINK, "Partition already mounted.");
return error::None;
}
}
if (!engine->isMounted()) {
- INFO(SINK, "Partition already umounted.");
+ ERROR(SINK, "Partition already umounted.");
return error::None;
}
// check if key migration is needed
if (UpgradeSupport::checkUpgradeFlag()) {
- INFO("Upgrade flag detected.");
+ INFO(SINK, "Upgrade flag detected.");
const std::string& dev = engine->getSource();
int rc = migrateMasterKey(dev, password);
if (rc == error::None)