moved debugging logs to /var/tmp

This commit is contained in:
pjmattal 2005-02-25 19:23:46 +00:00
parent 42c20c3955
commit ac7e555b34

View file

@ -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;