From c4151a07018f1a5ccb4b4138bd30ce948a9a47d2 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Tue, 20 Apr 2021 13:46:21 -0400 Subject: [PATCH] add timestamps to log output --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index bf8ad62..f5a0d31 100644 --- a/init.lua +++ b/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