com karma: add log for tag: lib/Git/PostReceiveHook.php
| From: | Alexander Moskaliov | Date: | Fri, 23 Mar 2012 06:51:23 +0000 |
| Subject: | com karma: add log for tag: lib/Git/PostReceiveHook.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68163@lists.php.net to get a copy of this message | ||
Commit: 74122fc5eefce2404a13e7fc5a37067bb6106881
Author: Alexander Moskaliov <irker@php.net> Fri, 23 Mar 2012 10:51:23 +0400
Parents: 51d545a5ce6759e7b9afcaa410ef92a8bbe4a01a
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=74122fc5eefce2404a13e7fc5a37067bb6106881
Log:
add log for tag
Changed paths:
M lib/Git/PostReceiveHook.php
Diff:
74122fc5eefce2404a13e7fc5a37067bb6106881
diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php
index b7f632d..eecc9cf 100644
--- a/lib/Git/PostReceiveHook.php
+++ b/lib/Git/PostReceiveHook.php
@@ -315,7 +315,8 @@ class PostReceiveHook extends ReceiveHook
$mail->setFrom($this->pushAuthor . '@php.net', $this->pushAuthorName);
$mail->addTo($this->mailingList);
- $mail->send();
+ $result = $mail->send();
+ $this->log('tag ' . $name . ($result ? ' was send' : ' error
while sending'));
}
/**