From fbfeed4ee72f9c61476e8787c8ec76e6f6ebd7ef Mon Sep 17 00:00:00 2001 From: Jakob Schrettenbrunner Date: Tue, 27 Jun 2017 10:42:19 +0200 Subject: [PATCH] add debug flag to config --- config.example.json | 1 + config/config.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config.example.json b/config.example.json index 71ac08d..4f40d90 100644 --- a/config.example.json +++ b/config.example.json @@ -1,4 +1,5 @@ { + "debug": false, "web": { "host": "0.0.0.0", "port": 8080, diff --git a/config/config.go b/config/config.go index ad58a30..8fb2dca 100644 --- a/config/config.go +++ b/config/config.go @@ -6,6 +6,8 @@ import ( // Config contains the configuration of the Pterodactyl Daemon type Config struct { + // Debug enables debug mode + Debug bool `mapstructure:"debug"` // Web contains the settings of the api webserver Web struct { @@ -67,6 +69,7 @@ type Config struct { // Path is the folder where logfiles should be stored Path string `mapstructure:"path"` // Level is the preferred log level + // It is overriden to debug when debug mode is enabled Level string `mapstructure:"level"` // DeleteAfterDays is the time in days after which logfiles are deleted