mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +01:00
Syslog the sphinx query error if there is any
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
8f2a655325
commit
ca99f0cebe
@ -39,7 +39,9 @@ class Sphinx {
|
||||
$s = $this->link->prepare($sql);
|
||||
if(!$s) { return $query; }
|
||||
|
||||
$s->execute($arr);
|
||||
if(!$s->execute($arr)) {
|
||||
syslog(LOG_INFO, $s->errorInfo()[2]);
|
||||
}
|
||||
|
||||
$this->affected = $s->rowCount();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user