|
|
@@ -11,9 +11,9 @@ namespace common\helpers;
|
|
|
|
|
|
use common\models\ApproachOrderCall;
|
|
|
use Faker\Provider\Uuid;
|
|
|
-use yii\base\Exception;
|
|
|
use yii\helpers\Url;
|
|
|
use yii\httpclient\Client;
|
|
|
+use yii\mongodb\Exception;
|
|
|
|
|
|
class Tool {
|
|
|
|
|
|
@@ -506,7 +506,8 @@ class Tool {
|
|
|
$model->event = $call['event'];
|
|
|
$model->data = $call['data'];
|
|
|
$model->insert();
|
|
|
- } catch (\Exception $e) {
|
|
|
+ } catch (Exception $e) {
|
|
|
+ LoggerTool::info($call);
|
|
|
LoggerTool::error(sprintf('[%s] [%s] [%s]', $e->getFile(), $e->getLine(), $e->getMessage()));
|
|
|
}
|
|
|
}
|