From ad8220176933165f419fdd825c915ef326e1ac46 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Mon, 20 Nov 2023 15:41:02 +0300 Subject: [PATCH] Adding support for warning message types sent from ATF C# bot; Increasing shell message size limit --- plan.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }