Fix log tool not printing some log entries
This commit is contained in:
+3
-3
@@ -26,12 +26,12 @@ local function viewlog(logname)
|
|||||||
else
|
else
|
||||||
entry = string.sub(entry, 1, -1)
|
entry = string.sub(entry, 1, -1)
|
||||||
end
|
end
|
||||||
if entry:sub(1, 4) == "INFO" then
|
if entry:sub(1, 4) == "WARN" then
|
||||||
print(entry)
|
|
||||||
elseif entry:sub(1, 4) == "WARN" then
|
|
||||||
print("\x1b[93m" .. entry)
|
print("\x1b[93m" .. entry)
|
||||||
elseif entry:sub(1, 5) == "ERROR" then
|
elseif entry:sub(1, 5) == "ERROR" then
|
||||||
print("\x1b[91m" .. entry)
|
print("\x1b[91m" .. entry)
|
||||||
|
else
|
||||||
|
print(entry)
|
||||||
end
|
end
|
||||||
entry = ""
|
entry = ""
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user