diff options
Diffstat (limited to 'testrig/config.go')
-rw-r--r-- | testrig/config.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testrig/config.go b/testrig/config.go index c3a62aed4..d33c4ac8c 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -18,6 +18,7 @@ package testrig import ( + "os" "time" "codeberg.org/gruf/go-bytesize" @@ -33,8 +34,16 @@ func InitTestConfig() { }) } +func logLevel() string { + level := "error" + if lv := os.Getenv("GTS_LOG_LEVEL"); lv != "" { + level = lv + } + return level +} + var testDefaults = config.Configuration{ - LogLevel: "info", + LogLevel: logLevel(), LogTimestampFormat: "02/01/2006 15:04:05.000", LogDbQueries: true, ApplicationName: "gotosocial", |