From 016c1fb1b0b1123654572ebc185ba21bbe4db784 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 19 Nov 2024 21:56:35 +0930 Subject: [PATCH] Show message type in packet:info --- app/Console/Commands/PacketInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/PacketInfo.php b/app/Console/Commands/PacketInfo.php index 5a413bb..a1babd8 100644 --- a/app/Console/Commands/PacketInfo.php +++ b/app/Console/Commands/PacketInfo.php @@ -68,7 +68,8 @@ class PacketInfo extends Command echo "\n"; try { - $this->warn(sprintf('- Date : %s (%s)',$msg->date,$msg->date->tz->toOffsetName())); + $this->warn(sprintf('- TYPE : %s',get_class($msg))); + $this->warn(sprintf(' - Date : %s (%s)',$msg->date,$msg->date->tz->toOffsetName())); $this->warn(sprintf(' - Errors : %s',$msg->errors->count() ? 'YES' : 'No')); $this->warn(sprintf(' - Flags : %s',$msg->flags()->keys()->join(', '))); $this->warn(sprintf(' - Cost : %d',$msg->cost));