Simplify command debug code

This commit is contained in:
Maxime Coste 2018-03-27 08:25:47 +11:00
parent 0a833371ab
commit e8093a12a0

View File

@ -416,13 +416,7 @@ void CommandManager::execute_single_command(CommandParameters params,
const DebugFlags debug_flags = context.options()["debug"].get<DebugFlags>(); const DebugFlags debug_flags = context.options()["debug"].get<DebugFlags>();
if (debug_flags & DebugFlags::Commands) if (debug_flags & DebugFlags::Commands)
{ write_to_debug_buffer(format("command {} {}", params[0], join(param_view, ' ')));
String repr_parameters;
for (auto repr_param : param_view)
repr_parameters += " " + repr_param;
write_to_debug_buffer(format("command {}{}", params[0], repr_parameters));
}
try try
{ {