From 662effb59056788fb13b871f1a72024445a10992 Mon Sep 17 00:00:00 2001 From: Azumgi <4zumgi@gmail.com> Date: Fri, 14 Dec 2018 20:54:17 +0300 Subject: [PATCH] [Logging] Fix infinite recursion in formatting Could happen for strings with format specifier in the end. --- vmf/scripts/mods/vmf/modules/core/logging.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmf/scripts/mods/vmf/modules/core/logging.lua b/vmf/scripts/mods/vmf/modules/core/logging.lua index 156b8be..5f4011e 100644 --- a/vmf/scripts/mods/vmf/modules/core/logging.lua +++ b/vmf/scripts/mods/vmf/modules/core/logging.lua @@ -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