chore: set debug as the default

This commit is contained in:
2026-04-22 22:38:34 +02:00
parent f796ea229f
commit 7eda86d900
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import (
func main() {
// grab the environment variables from the runtime environment
// unfortunately since its before we configure the loglevel, we cannot use slog logging in those functions
env := utility.GrabEnvironment()
// configure the logger so we have nice json
level := utility.ParseSlogLevel(env.LogLevel) // defaults to Info
@@ -19,7 +20,7 @@ func main() {
slog.SetDefault(logger)
// print our running environment variable set
slog.Debug("environment", "env", env)
slog.Debug("displaying environment", "env", env)
// TO DO, allow cmd args parsing
+1 -1
View File
@@ -80,7 +80,7 @@ func GrabEnvironment() Environment {
// Basic server configuration
Version: safeStringGrab("VERSION", "0.0.1"),
Codename: safeStringGrab("CODENAME", "Magical Anomaly"),
LogLevel: safeStringGrab("LOG_LEVEL", "info"),
LogLevel: safeStringGrab("LOG_LEVEL", "debug"),
// GIN API configuration
DataDirectory: safeStringGrab("DATA_DIR", fbBase),