作者 邓超

x

... ... @@ -96,7 +96,13 @@ class DbPool {
$query = $this->getClient()->prepare($sql);
$ret = $query->execute($params);
}catch (\Throwable $e){
logs($e->getMessage().$e->getTraceAsString());
logs([
$sql,$params,
$e->getMessage(),
$e->getTraceAsString()
],
LOG_PATH.'/'.date('Y-m-d').'-sql.error.log'
);
$ret = false;
}
... ...