com karma: Add some debug: hooks/commit-bugs.php
| From: | Rasmus Lerdorf | Date: | Tue, 05 Nov 2013 06:42:24 +0000 |
| Subject: | com karma: Add some debug: hooks/commit-bugs.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73858@lists.php.net to get a copy of this message | ||
Commit: 2a1047c8267b47904f0a0e612ae02cd7eda10b5e
Author: Rasmus Lerdorf <rasmus@lerdorf.com> Mon, 4 Nov 2013 22:42:24 -0800
Parents: eea6d4b8f5dbb0a3e47b0a5f5530b2b2c88da93d
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=2a1047c8267b47904f0a0e612ae02cd7eda10b5e
Log:
Add some debug
Changed paths:
M hooks/commit-bugs.php
Diff:
diff --git a/hooks/commit-bugs.php b/hooks/commit-bugs.php
index 6b6366c..b400006 100644
--- a/hooks/commit-bugs.php
+++ b/hooks/commit-bugs.php
@@ -2,6 +2,7 @@
// This script is intended to be called from post-commit. It assumes that all
// the appropriate variables and functions are defined.
+$is_DEBUG = false;
//
-----------------------------------------------------------------------------------------------------------------------------
// Constants
@@ -17,6 +18,7 @@ $bug_rpc_url = 'https://bugs.php.net/rpc.php';
//
-----------------------------------------------------------------------------------------------------------------------------
// Get the list of mentioned bugs from the commit log
+file_put_contents("/var/tmp/commit_info.log",json_encode($commit_info)."\n",FILE_APPEND);
if (preg_match_all($bug_pattern, $commit_info['log_message'], $matched_bugs,
PREG_SET_ORDER) < 1) {
// If no bugs matched, we don't have to do anything.
return;