Add log level to config page

This commit is contained in:
shortcutme 2019-01-10 14:11:30 +01:00
parent a0b60a8347
commit 5e928769ec
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 33 additions and 2 deletions

View file

@ -33,9 +33,9 @@ class ConfigStorage extends Class
return value
createSections: ->
# Web Interface
section = @createSection("Web Interface")
# Web Interface
section.items.push
key: "open_browser"
title: "Open web browser on ZeroNet startup"
@ -108,6 +108,19 @@ class ConfigStorage extends Class
isHidden: =>
Page.values["trackers_proxy"] in ["tor", "disable"]
# Performance
section = @createSection("Performance")
section.items.push
key: "log_level"
title: "Level of logging to file"
type: "select"
options: [
{title: "Everything", value: "DEBUG"}
{title: "Only important messages", value: "INFO"}
{title: "Only errors", value: "ERROR"}
]
createSection: (title) =>
section = {}
section.title = title