Skip to content

Commit e449f93

Browse files
committedAug 10, 2018
Improve.
1 parent d628c90 commit e449f93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎demos/zhihu.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
$http = new swoole_http_server('0.0.0.0', 9999);
1313

1414
$http->set([
15-
'worker_num' => 1
15+
'worker_num' => 1,
16+
'log_level' => SWOOLE_LOG_INFO,
17+
'trace_flags' => 0
1618
]);
19+
1720
/**@var $saber Saber */
1821
$http->on('workerStart', function () use (&$saber) {
1922
require_once __DIR__ . '/../vendor/autoload.php';
@@ -22,6 +25,7 @@
2225
$saber = Saber::create([
2326
'base_uri' => 'https://news-at.zhihu.com/api/4/'
2427
]);
28+
echo "Server is running on http://127.0.0.1:9999\n";
2529
});
2630

2731
$http->on('request', function (swoole_http_request $request, swoole_http_response $response) use (&$saber) {

0 commit comments

Comments
 (0)
Please sign in to comment.