summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-aria2/luasrc
diff options
context:
space:
mode:
authorZheng Qian <sotux82@gmail.com>2018-12-15 21:38:40 +0800
committerZheng Qian <sotux82@gmail.com>2018-12-15 21:44:49 +0800
commite56af3c3e58d355d5128de638afb9497804a359a (patch)
treea8fac520b24f621ca0fa127a89888a1481d61288 /applications/luci-app-aria2/luasrc
parentb5fb2a841f476cfc35bde65a52484be38e5ce5c4 (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.lua4
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"))