Mail bundling and processing performance improvements
This commit is contained in:
@@ -16,8 +16,7 @@ class PacketDump extends Command
|
||||
protected $signature = 'debug:packet:dump'.
|
||||
' {type : Type of packet, netmail|echomail }'.
|
||||
' {ftn : FTN}'.
|
||||
' {file? : filename}'.
|
||||
' {--dump : Dump packet}';
|
||||
' {file? : filename}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -50,11 +49,11 @@ class PacketDump extends Command
|
||||
throw new \Exception('Unknown type: '.$this->argument('type'));
|
||||
}
|
||||
|
||||
if ($this->option('dump')) {
|
||||
if (! $this->argument('file')) {
|
||||
$this->info('Item Name:'.$pkt->name);
|
||||
$this->info('Item Type:'.get_class($pkt));
|
||||
$this->info('Dump:');
|
||||
echo hex_dump($pkt);
|
||||
echo hex_dump((string)$pkt);
|
||||
|
||||
} else {
|
||||
$f = fopen($this->argument('file'),'w+');
|
||||
|
Reference in New Issue
Block a user