[Logging] Fix infinite recursion in formatting
Could happen for strings with format specifier in the end.
This commit is contained in:
parent
f40685af6c
commit
662effb590
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ local function safe_format(mod, str, ...)
|
||||||
if success then
|
if success then
|
||||||
return message
|
return message
|
||||||
else
|
else
|
||||||
mod:error("(logging) string.format: " .. tostring(message))
|
mod:error("(logging) string.format: %s", message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue