summaryrefslogtreecommitdiff
path: root/utils.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils.php')
-rw-r--r--utils.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.php b/utils.php
index 20a8088..6ead112 100644
--- a/utils.php
+++ b/utils.php
@@ -62,6 +62,8 @@ function match_aspath_regex($aspath_regex) {
}
function log_to_file($log) {
+ global $config;
+
$log = '['.date("Y-m-d H:i:s").'] '.$log."\n";
file_put_contents($config['misc']['logs'], $log, FILE_APPEND | LOCK_EX);
}