1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-17 10:56:24 -07:00

Log GC_TESTIP (testing IP address) if it is set

This commit is contained in:
Eggbertx 2024-01-21 17:21:40 -08:00
parent f78bcd3704
commit 5b000385da

View file

@ -46,6 +46,12 @@ func main() {
os.Exit(1)
}
testIP := os.Getenv("GC_TESTIP")
if testIP != "" {
gcutil.LogInfo().Str("GC_TESTIP", testIP).
Msg("Custom testing IP address set from environment variable")
}
if err = gcplugin.LoadPlugins(systemCritical.Plugins); err != nil {
gcutil.LogFatal().Err(err).Msg("failed loading plugins")
}