fix(config): change german log messages to english
This commit is contained in:
parent
3af5853421
commit
d99a8f42ce
1 changed files with 3 additions and 3 deletions
|
|
@ -107,15 +107,15 @@ func setConfigDefaults() {
|
|||
|
||||
func validateConfig(cfg *Config) error {
|
||||
if cfg.Elasticsearch.URL == "" {
|
||||
return fmt.Errorf("elasticsearch.url ist erforderlich")
|
||||
return fmt.Errorf("elasticsearch.url is required")
|
||||
}
|
||||
|
||||
if cfg.Elasticsearch.Index == "" {
|
||||
return fmt.Errorf("elasticsearch.index ist erforderlich")
|
||||
return fmt.Errorf("elasticsearch.index is required")
|
||||
}
|
||||
|
||||
if cfg.PollIntervalSeconds <= 0 {
|
||||
log.Printf("Warnung: poll_interval_seconds ist %d, setze auf 30", cfg.PollIntervalSeconds)
|
||||
log.Printf("Warning: poll_interval_seconds is %d, setting to 30", cfg.PollIntervalSeconds)
|
||||
cfg.PollIntervalSeconds = 30
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue