<% local fs = require "nixio.fs" local uci = require "luci.model.uci".cursor() local logfile = uci:get("AdGuardHome", "AdGuardHome", "logfile") or "" local no_logfile = (logfile == "") %> <% if no_logfile then %>
!
<%:运行日志未配置%>
<%:请在「基础设置 → 路径与日志 → 运行日志」填入日志路径(如 /tmp/AdGuardHome.log),或填 syslog 写入系统日志。%>
<%:去设置%>
<% end %>