diff --git a/pkg/.DS_Store b/pkg/.DS_Store deleted file mode 100644 index 7a08108..0000000 Binary files a/pkg/.DS_Store and /dev/null differ diff --git a/pkg/database/source.go b/pkg/database/source.go index 5fdb79d..7602278 100644 --- a/pkg/database/source.go +++ b/pkg/database/source.go @@ -21,7 +21,7 @@ func NewSource() error { }, Logger: logger.New(&log.Logger, logger.Config{ Colorful: true, IgnoreRecordNotFoundError: true, - LogLevel: lo.Ternary(viper.GetBool("debug"), logger.Info, logger.Silent), + LogLevel: lo.Ternary(viper.GetBool("debug.database"), logger.Info, logger.Silent), })}) return err diff --git a/pkg/server/startup.go b/pkg/server/startup.go index 97b0da8..f3159af 100644 --- a/pkg/server/startup.go +++ b/pkg/server/startup.go @@ -29,7 +29,7 @@ func NewServer() { JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, BodyLimit: 50 * 1024 * 1024, - EnablePrintRoutes: viper.GetBool("debug"), + EnablePrintRoutes: viper.GetBool("debug.print_routes"), }) A.Use(idempotency.New()) diff --git a/settings.toml b/settings.toml index 3e69e10..d1227fe 100644 --- a/settings.toml +++ b/settings.toml @@ -1,5 +1,3 @@ -debug = true - name = "Solarplaza" maintainer = "SmartSheep Studio" @@ -9,6 +7,10 @@ secret = "LtTjzAGFLshwXhN4ZD4nG5KlMv1MWcsvfv03TSZYnT1VhiAnLIZFTnHUwR0XhGgi" content = "uploads" +[debug] +database = false +print_routes = false + [identity] client_id = "solarplaza" client_secret = "Z9k9AFTj^p"