[Logging] Fix infinite recursion in formatting

Could happen for strings with format specifier in the end.
This commit is contained in:
Azumgi 2018-12-14 20:54:17 +03:00
parent f40685af6c
commit 662effb590

View file

@ -32,7 +32,7 @@ local function safe_format(mod, str, ...)
if success then
return message
else
mod:error("(logging) string.format: " .. tostring(message))
mod:error("(logging) string.format: %s", message)
end
end