diff --git a/plan.inc.php b/plan.inc.php index c8cb692..ec3923e 100644 --- a/plan.inc.php +++ b/plan.inc.php @@ -534,7 +534,7 @@ class Plan static function _printToShellExtItem(Task $task, array $item) { - $shell_msg = _trim($item['message'], 200); + $shell_msg = _trim($item['message'], 3000); if(Task::isProblemCode($item['error'])) $shell_msg = "[PRB] Code:{$item['error']}, $shell_msg"; $shell_msg = "(".round($item['time'],1)."s) {$shell_msg} *{$task->device}*"; @@ -594,7 +594,8 @@ class Plan { return Amp\call(function() use($task, $item, $msg_type, $msg_text) { - if($item['error'] == Task::CODE_EXCEPTION) + if($item['error'] == Task::CODE_EXCEPTION || + $item['error'] == Task::CODE_WARN) { $this->_postToMessengerExtStatusItem($task, $item); }