mirror of
https://github.com/mt-mods/biome_lib.git
synced 2024-11-13 22:20:21 +01:00
add timestamps to log output
This commit is contained in:
parent
bf2ac2ea57
commit
c4151a0701
4
init.lua
4
init.lua
|
@ -126,8 +126,8 @@ biome_lib.perlin_humidity = PerlinNoise(humidity_seeddiff, humidity_octaves, hum
|
|||
function biome_lib.dbg(msg, level)
|
||||
local l = tonumber(level) or 0
|
||||
if biome_lib.debug_log_level >= l then
|
||||
print("[Biome Lib] "..msg)
|
||||
minetest.log("verbose", "[Biome Lib] "..msg)
|
||||
print(os.date("%F %H:%M:%S").." [Biome Lib]: "..msg)
|
||||
minetest.log("verbose", "[Biome Lib]: "..msg)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user