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:
parent
f78bcd3704
commit
5b000385da
1 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue