Skip to content

Commit cc47529

Browse files
authored
[-] fix logging of cli options names (#1178)
`--refresh` instead of `--servers-refresh-loop-seconds` `--batching-delay` instead of `--batching-delay-ms`
1 parent 26db1e1 commit cc47529

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cmdopts/cmdoptions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,15 @@ func (c *Options) ValidateConfig() error {
207207
c.Metrics.Metrics = c.Sources.Sources
208208
}
209209
if c.Sources.Refresh <= 1 {
210-
return errors.New("--servers-refresh-loop-seconds must be greater than 1")
210+
return errors.New("--refresh must be greater than 1")
211211
}
212212
if c.Sources.MaxParallelConnectionsPerDb < 1 {
213213
return errors.New("--max-parallel-connections-per-db must be >= 1")
214214
}
215215

216216
// validate that input is boolean is set
217217
if c.Sinks.BatchingDelay <= 0 || c.Sinks.BatchingDelay > time.Hour {
218-
return errors.New("--batching-delay-ms must be between 0 and 1h")
218+
return errors.New("--batching-delay must be between 0 and 1h")
219219
}
220220

221221
return nil

0 commit comments

Comments
 (0)