File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
luci-app-easytier/luasrc/controller Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ function get_log()
8787 local files = {" /tmp/easytier.log" }
8888 for i , file in ipairs (files ) do
8989 if luci .sys .call (" [ -f '" .. file .. " ' ]" ) == 0 then
90- log = log .. luci .sys .exec (" cat " .. file )
90+ log = log .. luci .sys .exec (" sed 's/ \\ x1b \\ [[0-9;]*m//g' " .. file )
9191 end
9292 end
9393 luci .http .write (log )
@@ -102,7 +102,7 @@ function get_wlog()
102102 local files = {" /tmp/easytierweb.log" }
103103 for i , file in ipairs (files ) do
104104 if luci .sys .call (" [ -f '" .. file .. " ' ]" ) == 0 then
105- log = log .. luci .sys .exec (" cat " .. file )
105+ log = log .. luci .sys .exec (" sed 's/ \\ x1b \\ [[0-9;]*m//g' " .. file )
106106 end
107107 end
108108 luci .http .write (log )
You can’t perform that action at this time.
0 commit comments