From 0572afd29a1ef117873935b9ca5e8f1a0676727b Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Wed, 4 Jun 2014 11:07:14 +0200 Subject: Fix some newbie errors. --- utils.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils.php') 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); } -- cgit v1.2.3