fix(elimination_handler): re-write patch (#86)

This commit is contained in:
2024-05-04 10:15:40 +02:00
committed by GitHub
parent f9e6352940
commit f2dd8d5c38
5 changed files with 13 additions and 17 deletions

View File

@@ -57,11 +57,11 @@ void server::run_frame()
}
catch (const service::execution_exception& e)
{
console::warn("Execption in service: %s", e.what());
console::warn("Exception in service: %s", e.what());
}
catch (const std::exception& e)
{
console::error("Fatal execption in service: %s", e.what());
console::error("Fatal exception in service: %s", e.what());
}
}
}
@@ -84,8 +84,7 @@ void server::handle_command(const network::address& target, const std::string_vi
}
#ifdef DEBUG
console::log("Handling command (%s): %.*s - %.*s", target.to_string().data(), command.size(), command.data(),
data.size(), data.data());
console::log("Handling command (%s): %.*s - %.*s", target.to_string().data(), command.size(), command.data(), data.size(), data.data());
#endif
try
@@ -94,12 +93,11 @@ void server::handle_command(const network::address& target, const std::string_vi
}
catch (const service::execution_exception& e)
{
console::warn("Execption in command %.*s (%s): %s", command.size(), command.data(), target.to_string().data(),
console::warn("Exception in command %.*s (%s): %s", command.size(), command.data(), target.to_string().data(),
e.what());
}
catch (const std::exception& e)
{
console::error("Fatal execption in command %.*s (%s): %s", command.size(), command.data(),
target.to_string().data(), e.what());
console::error("Fatal exception in command %.*s (%s): %s", command.size(), command.data(), target.to_string().data(), e.what());
}
}