Skip to content

Commit bd6bb8a

Browse files
author
epriestley
committed
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
1 parent 7d771b4 commit bd6bb8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/infrastructure/daemon/bot/PhabricatorBot.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ private function routeMessage(PhabricatorBotMessage $message) {
114114
}
115115
}
116116

117+
if ($message->getCommand() == 'LOG') {
118+
$this->log("[LOG] ".$message->getBody());
119+
}
120+
117121
foreach ($this->handlers as $handler) {
118122
try {
119123
$handler->receiveMessage($message);

0 commit comments

Comments
 (0)