mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
moved debugging logs to /var/tmp
This commit is contained in:
parent
42c20c3955
commit
ac7e555b34
1 changed files with 4 additions and 4 deletions
|
@ -19,8 +19,8 @@ $SUPPORTED_LANGS = array( # what languages we have translations for
|
|||
|
||||
# debugging variables
|
||||
#
|
||||
$QBUG = 1; # toggle query logging to /tmp/aurq.log
|
||||
$DBUG = 1; # use dbug($msg) to log to /tmp/aurd.log
|
||||
$QBUG = 1; # toggle query logging to /var/tmp/aurq.log
|
||||
$DBUG = 1; # use dbug($msg) to log to /var/tmp/aurd.log
|
||||
|
||||
|
||||
# return an array of info for each Trusted user
|
||||
|
@ -273,7 +273,7 @@ function db_query($query="", $db_handle="") {
|
|||
$db_handle = db_connect();
|
||||
}
|
||||
if ($QBUG) {
|
||||
$fp = fopen("/tmp/aurq.log", "a");
|
||||
$fp = fopen("/var/tmp/aurq.log", "a");
|
||||
fwrite($fp, $query . "\n");
|
||||
fclose($fp);
|
||||
}
|
||||
|
@ -438,7 +438,7 @@ function html_footer($ver="") {
|
|||
# debug logging
|
||||
#
|
||||
function dbug($msg) {
|
||||
$fp = fopen("/tmp/aurd.log", "a");
|
||||
$fp = fopen("/var/tmp/aurd.log", "a");
|
||||
fwrite($fp, $msg . "\n");
|
||||
fclose($fp);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue