Fix log tool not printing some log entries

This commit is contained in:
mcplayer3
2025-10-21 20:34:06 +11:00
parent f1d69b51b2
commit 8548855d7f
+3 -3
View File
@@ -26,12 +26,12 @@ local function viewlog(logname)
else
entry = string.sub(entry, 1, -1)
end
if entry:sub(1, 4) == "INFO" then
print(entry)
elseif entry:sub(1, 4) == "WARN" then
if entry:sub(1, 4) == "WARN" then
print("\x1b[93m" .. entry)
elseif entry:sub(1, 5) == "ERROR" then
print("\x1b[91m" .. entry)
else
print(entry)
end
entry = ""
else