diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 11:04:21 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 11:04:21 +0200 |
commit | 0269dccacb67f25beb39dac8f16fb3d5538c7782 (patch) | |
tree | a257d5ef3d49883ca9dd819622521ae43f491bee /router.php | |
parent | 3b65c83a5e2ce34a27d104fdb3761cbea18cda90 (diff) |
Little improvement for the logging function.
Log spamers into the logs file.
Diffstat (limited to 'router.php')
-rw-r--r-- | router.php | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -46,13 +46,6 @@ class Router { } } - protected function log_command($command) { - global $config; - - file_put_contents($config['misc']['logs'], $command, - FILE_APPEND | LOCK_EX); - } - public function send_command($command, $parameters) { global $config; @@ -110,8 +103,8 @@ class Router { $data = $auth->send_command($complete_command); $auth->disconnect(); - $this->log_command('['.date("Y-m-d H:i:s").'] [client: '. - $this->requester.'] '.$this->host.'> '.$complete_command."\n"); + log_to_file('[client: '.$this->requester.'] '.$this->host.'> '. + $complete_command); return $data; } |