This commit is contained in:
2020-11-26 11:37:10 +08:00
parent 2f24fa9e60
commit 556b60f256
3 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -203,8 +203,7 @@ class Command extends Component
$this->debug($this->sql . '。 Run-time: ' . (microtime(true) - $time)); $this->debug($this->sql . '。 Run-time: ' . (microtime(true) - $time));
} }
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
$this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql'); $result = $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
$result = [];
} finally { } finally {
return $result; return $result;
} }
+2 -2
View File
@@ -14,11 +14,11 @@ abstract class Tcp extends Server implements Service
use \HttpServer\Service\Abstracts\Server; use \HttpServer\Service\Abstracts\Server;
/** @var Closure|array */ /** @var Closure|array */
public Closure|array $unpack; public $unpack;
/** @var Closure|array */ /** @var Closure|array */
public Closure|array $pack; public $pack;
} }
+2
View File
@@ -99,6 +99,8 @@ class BaseObject implements Configure
} }
$this->error($message); $this->error($message);
} }
$logger = Snowflake::app()->getLogger();
$logger->error($message, $model);
return FALSE; return FALSE;
} }