Pipe the output of debug commands into the right target writer. This fixes hidden responses in the debug terminal via websocket.

This commit is contained in:
Kleissner
2022-01-12 16:51:18 +01:00
parent 0bc0d007a4
commit 5260dc354e
5 changed files with 93 additions and 84 deletions

View File

@@ -18,6 +18,9 @@ const configFile = "Config.yaml"
const appName = "Peernet Cmd"
var config struct {
// Warning: These settings are currently overwritten (deleted) when the config file is updated by core.
// In the future the core package will consider custom config fields.
// Log settings
ErrorOutput int `yaml:"ErrorOutput"` // 0 = Log file (default), 1 = Command line, 2 = Log file + command line, 3 = None
DebugAPI bool `yaml:"DebugAPI"` // Enables the debug API which allows profiling. Do not enable in production. Only available if compiled with debug tag.