1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

In debug mode, log all phabricator bot data to the log

Summary: Dump everything to the debug log for `phd debug phabricatorbot ...`

Test Plan: Ran `phd debug phabricatorbot ...`

Reviewers: chad, AnhNhan

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5239
This commit is contained in:
epriestley 2013-03-05 12:56:36 -08:00
parent 7d771b4ff7
commit bd6bb8a3ea

View file

@ -114,6 +114,10 @@ final class PhabricatorBot extends PhabricatorDaemon {
}
}
if ($message->getCommand() == 'LOG') {
$this->log("[LOG] ".$message->getBody());
}
foreach ($this->handlers as $handler) {
try {
$handler->receiveMessage($message);