aboutsummaryrefslogtreecommitdiffstats
path: root/models/webhook.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-07-26 00:24:27 -0400
committerUnknwon <joe2010xtmf@163.com>2014-07-26 00:24:27 -0400
commit8dd07c0ddd99ae626a1ec8c06f75f27fed51269f (patch)
tree261d3c9911dabc58c1ac54e4e36b3dee24d2032b /models/webhook.go
parent0a739cf9ac901f54484c34bba8322418dedb09b0 (diff)
downloadgitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.tar.gz
gitea-8dd07c0ddd99ae626a1ec8c06f75f27fed51269f.zip
New UI merge in progress
Diffstat (limited to 'models/webhook.go')
-rw-r--r--models/webhook.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/webhook.go b/models/webhook.go
index 9044befba2..925ec1a7de 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -47,7 +47,7 @@ type Webhook struct {
func (w *Webhook) GetEvent() {
w.HookEvent = &HookEvent{}
if err := json.Unmarshal([]byte(w.Events), w.HookEvent); err != nil {
- log.Error("webhook.GetEvent(%d): %v", w.Id, err)
+ log.Error(4, "webhook.GetEvent(%d): %v", w.Id, err)
}
}
@@ -193,13 +193,13 @@ func DeliverHooks() {
// Only support JSON now.
if _, err := httplib.Post(t.Url).SetTimeout(timeout, timeout).
Body([]byte(t.PayloadContent)).Response(); err != nil {
- log.Error("webhook.DeliverHooks(Delivery): %v", err)
+ log.Error(4, "webhook.DeliverHooks(Delivery): %v", err)
return nil
}
t.IsDeliveried = true
if err := UpdateHookTask(t); err != nil {
- log.Error("webhook.DeliverHooks(UpdateHookTask): %v", err)
+ log.Error(4, "webhook.DeliverHooks(UpdateHookTask): %v", err)
return nil
}