作者 邓超

优化同步

... ... @@ -84,7 +84,7 @@ class Es {
try {
$response = $this->client->search($params);
}catch (\Throwable $e) {
logs("搜索数据es:".$e->getMessage()." \n ".json_encode($params));
logs("搜索数据es:".$e->getMessage()." \n ".json_encode($params)."\n".$e->getTraceAsString());
return [];
}
... ... @@ -108,7 +108,7 @@ class Es {
try {
$response = $this->client->count($params);
}catch (\Throwable $e) {
logs("搜索数据es:".$e->getMessage()." \n ".json_encode($params));
logs("搜索数据es:".$e->getMessage()." \n ".json_encode($params)."\n".$e->getTraceAsString());
return 0;
}
... ...