Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 516c7612a5 | |||
| 3bb3d5a1d7 |
@@ -22,7 +22,7 @@ abstract class HttpService extends Component
|
|||||||
* @param string $category
|
* @param string $category
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
protected function write($message, $category = 'app')
|
protected function write($message, string $category = 'app')
|
||||||
{
|
{
|
||||||
$logger = Snowflake::app()->getLogger();
|
$logger = Snowflake::app()->getLogger();
|
||||||
$logger->write($message, $category);
|
$logger->write($message, $category);
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ use function Co\run;
|
|||||||
* @package Snowflake
|
* @package Snowflake
|
||||||
*
|
*
|
||||||
* @property-read Config $config
|
* @property-read Config $config
|
||||||
* @property-read WchatProviders $wchat
|
|
||||||
*/
|
*/
|
||||||
class Application extends BaseApplication
|
class Application extends BaseApplication
|
||||||
{
|
{
|
||||||
@@ -62,6 +61,9 @@ class Application extends BaseApplication
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Closure|array $closure
|
* @param Closure|array $closure
|
||||||
* @return $this
|
* @return $this
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ abstract class Process extends \Swoole\Process implements SProcess
|
|||||||
|
|
||||||
fire(Event::SERVER_WORKER_START);
|
fire(Event::SERVER_WORKER_START);
|
||||||
if (Snowflake::getPlatform()->isLinux()) {
|
if (Snowflake::getPlatform()->isLinux()) {
|
||||||
swoole_set_process_name($this->getProcessName());
|
name($this->pid, $this->getProcessName());
|
||||||
}
|
}
|
||||||
if (method_exists($this, 'before')) {
|
if (method_exists($this, 'before')) {
|
||||||
$this->before($process);
|
$this->before($process);
|
||||||
|
|||||||
Reference in New Issue
Block a user