mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 15:33:17 +01:00
chore: Add deprecation message for GATUS_CONFIG_FILE
This commit is contained in:
parent
4225d22369
commit
6bdd3c94fe
1
main.go
1
main.go
@ -57,6 +57,7 @@ func loadConfiguration() (*config.Config, error) {
|
||||
// Backwards compatibility
|
||||
if len(configPath) == 0 {
|
||||
configPath = os.Getenv("GATUS_CONFIG_FILE")
|
||||
log.Println("WARNING: GATUS_CONFIG_FILE is deprecated. Please use GATUS_CONFIG_PATH instead.")
|
||||
}
|
||||
return config.LoadConfiguration(configPath)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user