log query source uri even with niceurls
This commit is contained in:
parent
9ba9bf0fdf
commit
12335b680e
1 changed files with 2 additions and 1 deletions
|
@ -208,8 +208,9 @@ class Database
|
||||||
public function _execute(string $query, array $args = []): PDOStatement
|
public function _execute(string $query, array $args = []): PDOStatement
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$uri = $_SERVER['REQUEST_URI'] ?? "unknown uri";
|
||||||
return $this->get_db()->execute(
|
return $this->get_db()->execute(
|
||||||
"-- " . str_replace("%2F", "/", urlencode($_GET['q'] ?? '')). "\n" .
|
"-- $uri\n" .
|
||||||
$query,
|
$query,
|
||||||
$args
|
$args
|
||||||
);
|
);
|
||||||
|
|
Reference in a new issue