Browse Source

fix syslog log page error

rufengsuixing 6 years ago
parent
commit
4f2157fad7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      luasrc/controller/AdGuardHome.lua

+ 3 - 0
luasrc/controller/AdGuardHome.lua

@@ -33,6 +33,9 @@ function get_log()
 	if (logfile==nil) then
 	luci.http.write("no log available\n")
 	return
+	elseif (logfile=="syslog") then
+	luci.http.write("please go to system log\n")
+	return
 	end
 	luci.http.prepare_content("text/plain; charset=utf-8")
 	logpos=nixio.fs.readfile("/var/run/lucilogpos")