tech(alerting): improve/cleanup logging

This commit is contained in:
bergquist
2016-06-16 08:56:19 +02:00
parent 4d03e04172
commit 72e23bca5f
2 changed files with 1 additions and 7 deletions
+1 -3
View File
@@ -32,15 +32,13 @@ func processWebhookQueue() {
err := sendWebRequest(webhook)
if err != nil {
webhookLog.Error("Failed to send webrequest ")
webhookLog.Error("Failed to send webrequest ", "error", err)
}
}
}
}
func sendWebRequest(webhook *Webhook) error {
webhookLog.Error("Sending stuff! ", "url", webhook.Url)
client := http.Client{
Timeout: time.Duration(3 * time.Second),
}