aboutsummaryrefslogtreecommitdiffstats
path: root/include/salmon.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-26 22:09:13 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-26 22:09:13 -0700
commit2028e1695c82685102a7eef7f75094267446a887 (patch)
tree45101cd992941eaf90f3844b49e4cf90fbb8e599 /include/salmon.php
parenteb5e6aae7273fef06a06f983fe78aaad737aa729 (diff)
downloadvolse-hubzilla-2028e1695c82685102a7eef7f75094267446a887.tar.gz
volse-hubzilla-2028e1695c82685102a7eef7f75094267446a887.tar.bz2
volse-hubzilla-2028e1695c82685102a7eef7f75094267446a887.zip
rework the logging interface
Diffstat (limited to 'include/salmon.php')
-rw-r--r--include/salmon.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/salmon.php b/include/salmon.php
index e93ec23d7..872dcd5f3 100644
--- a/include/salmon.php
+++ b/include/salmon.php
@@ -29,9 +29,7 @@ function base64url_decode($s) {
function get_salmon_key($uri,$keyhash) {
$ret = array();
- $debugging = get_config('system','debugging');
- if($debugging)
- file_put_contents('salmon.out', "\n" . 'Fetch key' . "\n", FILE_APPEND);
+ logger('Fetching salmon key');
$arr = lrdd($uri);
@@ -62,8 +60,8 @@ function get_salmon_key($uri,$keyhash) {
}
}
- if($debugging)
- file_put_contents('salmon.out', "\n" . 'Key located: ' . print_r($ret,true) . "\n", FILE_APPEND);
+
+ logger('Key located: ' . print_r($ret,true));
if(count($ret) == 1) {
@@ -90,6 +88,7 @@ function get_salmon_key($uri,$keyhash) {
function slapper($owner,$contact,$slap) {
+ logger('slapper called. Data: ' . $slap);
// does contact have a salmon endpoint?
@@ -180,7 +179,7 @@ EOT;
$return_code = trim($a->get_curl_code());
}
-
+ logger('slapper returned ' . $return_code);
return;
}