Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
juliantenney committed Jan 25, 2013
1 parent 4744a53 commit b615c6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions.php
Expand Up @@ -17,9 +17,11 @@ function _debug($string, $up = 0)
if(defined('XOT_DEBUG_LOGFILE')) {
$file = XOT_DEBUG_LOGFILE;
}
/*
if(!file_exists($file)) {
touch($file); // try and create it.
}
*/
if(!is_writeable($file)) { // fall back to PHP's inbuilt log, which may go to the apache log file, syslog or somewhere else.
error_log($string);
}
Expand Down

0 comments on commit b615c6e

Please sign in to comment.