改名
This commit is contained in:
@@ -92,7 +92,6 @@ class BaseObject implements Configure
|
|||||||
*/
|
*/
|
||||||
public function addError($message, $model = 'app'): bool
|
public function addError($message, $model = 'app'): bool
|
||||||
{
|
{
|
||||||
var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
|
|
||||||
if ($message instanceof \Throwable) {
|
if ($message instanceof \Throwable) {
|
||||||
$this->error($message->getMessage(), $message->getFile(), $message->getLine());
|
$this->error($message->getMessage(), $message->getFile(), $message->getLine());
|
||||||
} else {
|
} else {
|
||||||
@@ -173,7 +172,6 @@ class BaseObject implements Configure
|
|||||||
*/
|
*/
|
||||||
public function error(mixed $message, $method = null, $file = null)
|
public function error(mixed $message, $method = null, $file = null)
|
||||||
{
|
{
|
||||||
var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
|
|
||||||
if (!empty($file)) {
|
if (!empty($file)) {
|
||||||
echo "\033[41;37m[ERROR][" . date('Y-m-d H:i:s') . ']: ' . $file . "\033[0m";
|
echo "\033[41;37m[ERROR][" . date('Y-m-d H:i:s') . ']: ' . $file . "\033[0m";
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ namespace Snowflake\Process;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Snowflake\Application;
|
use Snowflake\Application;
|
||||||
|
use Snowflake\Event;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -31,6 +32,7 @@ abstract class Process extends \Swoole\Process implements SProcess
|
|||||||
{
|
{
|
||||||
$class = get_called_class();
|
$class = get_called_class();
|
||||||
parent::__construct(function ($process) use ($name, $class) {
|
parent::__construct(function ($process) use ($name, $class) {
|
||||||
|
fire(Event::SERVER_WORKER_START);
|
||||||
if (Snowflake::isLinux()) {
|
if (Snowflake::isLinux()) {
|
||||||
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
|
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
|
||||||
$this->name($prefix . ': ' . $class);
|
$this->name($prefix . ': ' . $class);
|
||||||
|
|||||||
Reference in New Issue
Block a user