improved logging for the gui

Change-Id: I31d0dbb70b8d8184ce1f48d0161ddaf9e6c8d9ca
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ
2016-09-21 21:59:57 +02:00
parent 4602ecd4a7
commit ba52fa3c99
11 changed files with 25 additions and 24 deletions

View File

@ -70,7 +70,7 @@ class Sphinx {
if($v[0] == "total_found") { $query->total_found = $v[1]; }
}
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, sprintf("sphinx query: '%s' in %.2f s, %d hits, %d total found", $query->query, $query->exec_time, $query->num_rows, $query->total_found)); }
if(LOG_LEVEL >= NORMAL) { syslog(LOG_INFO, sprintf("sphinx query: '%s' in %.2f s, %d hits, %d total found", $query->query, $query->exec_time, $query->num_rows, $query->total_found)); }
$session = Registry::get('session');
$sphx_query = '';