summaryrefslogtreecommitdiff
path: root/router.php
diff options
context:
space:
mode:
Diffstat (limited to 'router.php')
-rw-r--r--router.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/router.php b/router.php
index ee90947..b5112e1 100644
--- a/router.php
+++ b/router.php
@@ -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;
}