fix(config): change german log messages to english

This commit is contained in:
Patryk Hegenberg 2025-09-01 12:24:50 +02:00
parent 3af5853421
commit d99a8f42ce

View file

@ -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
}