add debug flag to config

This commit is contained in:
Jakob Schrettenbrunner 2017-06-27 10:42:19 +02:00
parent 2322a9721a
commit fbfeed4ee7
2 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{
"debug": false,
"web": {
"host": "0.0.0.0",
"port": 8080,

View File

@ -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