add timestamps to log output

This commit is contained in:
Vanessa Dannenberg 2021-04-20 13:46:21 -04:00
parent bf2ac2ea57
commit c4151a0701
1 changed files with 2 additions and 2 deletions

View File

@ -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