Add timeout customization

This commit is contained in:
Faiz Shukri
2016-06-16 13:38:51 +08:00
parent 20e4dd1414
commit 3f4b9ced77
4 changed files with 11 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ func main() {
wg := &sync.WaitGroup{}
for _, mon := range cfg.Monitors {
cfg.Logger.Printf(" Starting %s: %d seconds check interval\n - %v %s", mon.Name, mon.CheckInterval, mon.Method, mon.URL)
cfg.Logger.Printf(" Starting %s: %d seconds check interval\n - %v %s (%d second/s timeout)", mon.Name, mon.CheckInterval, mon.Method, mon.URL, mon.HttpTimeout)
// print features
if mon.ExpectedStatusCode > 0 {