mirror of
https://github.com/gmod-integration/lua.git
synced 2025-07-07 11:43:59 +00:00
fix: update simpleLog function to correctly handle logTimestamp configuration
This commit is contained in:
parent
99d70b8146
commit
23ed1507ce
|
@ -2,7 +2,7 @@ if game.SinglePlayer() then return print("Gmod Integration is not supported in S
|
|||
local alreadyLoadGMI = gmInte
|
||||
local isLatest = debug.getinfo(1, "S").source == "@addons/_gmod_integration_latest/lua/autorun/_gmod_integration_latest.lua"
|
||||
local function simpleLog(msg, debug)
|
||||
print(" | " .. os.date(gmInte.config.logTimestamp || "%Y-%m-%d %H:%M:%S") .. " | Gmod Integration | " .. msg)
|
||||
print(" | " .. os.date((gmInte && gmInte.config.logTimestamp) || "%Y-%m-%d %H:%M:%S") .. " | Gmod Integration | " .. msg)
|
||||
end
|
||||
|
||||
if !alreadyLoadGMI then
|
||||
|
|
Loading…
Reference in New Issue
Block a user