db: replace QUERY_LOG with _DEBUG_QUERY_LOG
This commit is contained in:
parent
0a117b86b0
commit
8fe3a493d4
|
@ -52,7 +52,7 @@ function db_escape_string($s, $strip_tags = true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function db_query($link, $query, $die_on_error = true) {
|
function db_query($link, $query, $die_on_error = true) {
|
||||||
if ($_REQUEST["qlog"] || defined('QUERY_LOG')) {
|
if ($_REQUEST["qlog"] || defined('_DEBUG_QUERY_LOG')) {
|
||||||
$query = trim($query);
|
$query = trim($query);
|
||||||
error_log($_SESSION["uid"] . ":" . $_REQUEST["op"] . "/" . $_REQUEST["method"] .
|
error_log($_SESSION["uid"] . ":" . $_REQUEST["op"] . "/" . $_REQUEST["method"] .
|
||||||
" $query\n", 3, "/tmp/ttrss-query.log");
|
" $query\n", 3, "/tmp/ttrss-query.log");
|
||||||
|
|
Loading…
Reference in New Issue