From e56af3c3e58d355d5128de638afb9497804a359a Mon Sep 17 00:00:00 2001 From: Zheng Qian Date: Sat, 15 Dec 2018 21:38:40 +0800 Subject: luci-app-aria2: fix the log option According to the package aria2, the log option is enable_logging, so fix this option name. As luci-app-aria2 can't set custom log file dir, the default log file is /var/log/aria2.log but not in the config file dir. Signed-off-by: Zheng Qian --- applications/luci-app-aria2/luasrc/model/cbi/aria2.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-aria2/luasrc') diff --git a/applications/luci-app-aria2/luasrc/model/cbi/aria2.lua b/applications/luci-app-aria2/luasrc/model/cbi/aria2.lua index 3b61f9546..9e9df9aa7 100644 --- a/applications/luci-app-aria2/luasrc/model/cbi/aria2.lua +++ b/applications/luci-app-aria2/luasrc/model/cbi/aria2.lua @@ -89,12 +89,12 @@ o.rmempty = true o = s:taboption("file", Value, "config_dir", translate("Config file directory")) o.placeholder = "/var/etc/aria2" -o = s:taboption("file", Flag, "enable_log", translate("Enable log"), translate("Log file is in the config file dir.")) +o = s:taboption("file", Flag, "enable_logging", translate("Enable log"), translate("The default log file is /var/log/aria2.log")) o.enabled = "true" o.disabled = "false" o = s:taboption("file", ListValue, "log_level", translate("Log level")) -o:depends("enable_log", "true") +o:depends("enable_logging", "true") o:value("debug", translate("Debug")) o:value("info", translate("Info")) o:value("notice", translate("Notice")) -- cgit v1.2.3