Adding support for warning message types sent from ATF C# bot; Increasing shell message size limit
This commit is contained in:
parent
fc46b77907
commit
ad82201769
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue