diff options
Diffstat (limited to 'mod/pubsub.php')
-rw-r--r-- | mod/pubsub.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/mod/pubsub.php b/mod/pubsub.php index 1b69cc5f9..28e8356eb 100644 --- a/mod/pubsub.php +++ b/mod/pubsub.php @@ -39,10 +39,7 @@ function pubsub_init(&$a) { $hub_lease = notags(trim($_GET['hub_lease_seconds'])); $hub_verify = notags(trim($_GET['hub_verify_token'])); - $debugging = get_config('system','debugging'); - if($debugging) { - file_put_contents('pubsub.out', 'Pubsubhubbub subscription called from ' . $_SERVER['REMOTE_ADDR'] . ' at ' . datetime_convert() . "\n" . print_r($_GET,true), FILE_APPEND); - } + logger('pubsub: Subscription from' . $_SERVER['REMOTE_ADDR'] . print_r($_GET,true)); $subscribe = (($hub_mode === 'subscribe') ? 1 : 0); @@ -89,10 +86,7 @@ function pubsub_post(&$a) { $xml = file_get_contents('php://input'); - $debugging = get_config('system','debugging'); - $remote_host = 'Pubsub feed arrived from ' . $_SERVER['REMOTE_ADDR'] . ' at ' . datetime_convert() . ' for ' . $a->cmd . "\n\n"; - if($debugging) - file_put_contents('pubsub.out', $remote_host . $xml, FILE_APPEND); + logger('pubsub: feed arrived from ' . $_SERVER['REMOTE_ADDR'] . ' for ' . $a->cmd . ':' . $xml); $nick = (($a->argc > 1) ? notags(trim($a->argv[1])) : ''); $contact_id = (($a->argc > 2) ? intval($a->argv[2]) : 0); |