diff options
author | Zheng Qian <sotux82@gmail.com> | 2018-12-15 21:38:40 +0800 |
---|---|---|
committer | Zheng Qian <sotux82@gmail.com> | 2018-12-15 21:44:49 +0800 |
commit | e56af3c3e58d355d5128de638afb9497804a359a (patch) | |
tree | a8fac520b24f621ca0fa127a89888a1481d61288 /applications/luci-app-aria2/luasrc | |
parent | b5fb2a841f476cfc35bde65a52484be38e5ce5c4 (diff) |
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 <sotux82@gmail.com>
Diffstat (limited to 'applications/luci-app-aria2/luasrc')
-rw-r--r-- | applications/luci-app-aria2/luasrc/model/cbi/aria2.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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")) |