Golint & bug fixes

This commit is contained in:
Matej Kramny
2015-03-20 21:04:48 +01:00
parent b5efaeece1
commit d62aa53169
3 changed files with 11 additions and 11 deletions

View File

@@ -10,9 +10,9 @@ func main() {
fmt.Printf("API: %s\n", cachet.Config.APIUrl)
fmt.Printf("Starting %d monitors:\n", len(cachet.Config.Monitors))
for _, monitor := range cachet.Config.Monitors {
fmt.Printf(" %s: GET %s & Expect HTTP %d\n", monitor.Name, monitor.Url, monitor.ExpectedStatusCode)
if monitor.MetricId > 0 {
fmt.Printf(" - Logs lag to metric id: %d\n", monitor.MetricId)
fmt.Printf(" %s: GET %s & Expect HTTP %d\n", monitor.Name, monitor.URL, monitor.ExpectedStatusCode)
if monitor.MetricID > 0 {
fmt.Printf(" - Logs lag to metric id: %d\n", monitor.MetricID)
}
}