mirror of
https://github.com/alterware/master-server.git
synced 2026-03-11 03:03:02 +00:00
fix(elimination_handler): re-write patch (#86)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user