Add log level to config page
This commit is contained in:
parent
a0b60a8347
commit
5e928769ec
2 changed files with 33 additions and 2 deletions
|
@ -33,9 +33,9 @@ class ConfigStorage extends Class
|
||||||
return value
|
return value
|
||||||
|
|
||||||
createSections: ->
|
createSections: ->
|
||||||
|
# Web Interface
|
||||||
section = @createSection("Web Interface")
|
section = @createSection("Web Interface")
|
||||||
|
|
||||||
# Web Interface
|
|
||||||
section.items.push
|
section.items.push
|
||||||
key: "open_browser"
|
key: "open_browser"
|
||||||
title: "Open web browser on ZeroNet startup"
|
title: "Open web browser on ZeroNet startup"
|
||||||
|
@ -108,6 +108,19 @@ class ConfigStorage extends Class
|
||||||
isHidden: =>
|
isHidden: =>
|
||||||
Page.values["trackers_proxy"] in ["tor", "disable"]
|
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) =>
|
createSection: (title) =>
|
||||||
section = {}
|
section = {}
|
||||||
section.title = title
|
section.title = title
|
||||||
|
|
|
@ -1419,7 +1419,7 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
return section.items.push({
|
section.items.push({
|
||||||
title: "Custom socks proxy address for trackers",
|
title: "Custom socks proxy address for trackers",
|
||||||
key: "trackers_proxy",
|
key: "trackers_proxy",
|
||||||
type: "text",
|
type: "text",
|
||||||
|
@ -1433,6 +1433,24 @@
|
||||||
};
|
};
|
||||||
})(this)
|
})(this)
|
||||||
});
|
});
|
||||||
|
section = this.createSection("Performance");
|
||||||
|
return 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
ConfigStorage.prototype.createSection = function(title) {
|
ConfigStorage.prototype.createSection = function(title) {
|
||||||
|
|
Loading…
Reference in a new issue