Skip to content

Commit ff92426

Browse files
committed
update output style
1 parent a975fd7 commit ff92426

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"php": ">=5.6",
1515
"fastd/packet": "~1.3.0",
1616
"fastd/http": "~3.0.0",
17-
"symfony/console": "~3.2.0"
17+
"symfony/console": "^3.2"
1818
},
1919
"require-dev": {
2020
"phpunit/phpunit": "^5.0"

src/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function onManagerStart(swoole_server $server)
501501
{
502502
process_rename($this->getName() . ' manager');
503503

504-
$this->output->writeln(sprintf('Server Manager[<info>#%s</info>] is started', $server->manager_pid));
504+
$this->output->write(sprintf('Server Manager[<info>#%s</info>] is started', $server->manager_pid) . PHP_EOL);
505505
}
506506

507507
/**
@@ -523,7 +523,7 @@ public function onWorkerStart(swoole_server $server, $worker_id)
523523
{
524524
process_rename($this->getName() . ' worker');
525525

526-
$this->output->writeln(sprintf('Server Worker[<info>#%s</info>] is started [<info>#%s</info>]', $server->worker_pid, $worker_id));
526+
$this->output->write(sprintf('Server Worker[<info>#%s</info>] is started [<info>#%s</info>]', $server->worker_pid, $worker_id) . PHP_EOL);
527527
}
528528

529529
/**

0 commit comments

Comments
 (0)