You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/02/16 22:15:56 UTC

[06/23] allura git commit: [#4542] ticket:714 Audit log of webhooks added

[#4542] ticket:714 Audit log of webhooks added


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/7d8c47ba
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/7d8c47ba
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/7d8c47ba

Branch: refs/heads/master
Commit: 7d8c47bac3efbc322e98da47b952f6812ee41f1b
Parents: 0f529d6
Author: Igor Bondarenko <je...@gmail.com>
Authored: Wed Jan 28 11:37:06 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Mon Feb 16 10:16:48 2015 +0000

----------------------------------------------------------------------
 Allura/allura/webhooks.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/7d8c47ba/Allura/allura/webhooks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/webhooks.py b/Allura/allura/webhooks.py
index 5c792be..9bb99e3 100644
--- a/Allura/allura/webhooks.py
+++ b/Allura/allura/webhooks.py
@@ -89,6 +89,8 @@ class WebhookController(BaseController):
             app_config_id=ObjectId(app),
             type=self.webhook.type)
         session(wh).flush(wh)
+        M.AuditLog.log('add webhook %s %s %s',
+                       wh.type, wh.hook_url, wh.app_config.url())
         redirect(c.project.url() + 'admin/webhooks/')