[Logs] Don't print empty ()

This commit is contained in:
Ivan Chikish 2023-07-12 21:41:14 +03:00
parent 230193129f
commit a4ad666817

View file

@ -186,7 +186,8 @@ void _orbis_log_print(LogLevel lvl, const char *msg, std::string_view names,
va_end(c_args);
text += msg;
text += "(";
if (args_count)
text += "(";
for (std::size_t i = 0; i < args_count; i++) {
if (i)
text += ", ";
@ -197,7 +198,8 @@ void _orbis_log_print(LogLevel lvl, const char *msg, std::string_view names,
text += "=";
sup[i].log_string(text, args[i]);
}
text += ")";
if (args_count)
text += ")";
const char *color = "";
switch (lvl) {