Fixed bug where log_level() always returned log.success instead of the correct log level

This commit is contained in:
Bill Ferguson
2018-05-15 01:22:09 -04:00
parent f961e6aa6b
commit 7acf2b9cac

View File

@@ -242,6 +242,7 @@ function dtutils_log.log_level(...)
for _,v in ipairs(levels) do
if dtutils_log[v].enabled == true then
log_level = dtutils_log[v]
break
end
end
end