aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-23 15:55:11 -0800
committerFriendika <info@friendika.com>2010-11-23 15:55:11 -0800
commit15f011b34c3a6005fc4d0b6230db44e7ccfa4fcc (patch)
treea4f1a730122aafd43299b42702fb3e05700da180
parent1278305de92935bdc4ee2f27076fbbb83917cbec (diff)
downloadvolse-hubzilla-15f011b34c3a6005fc4d0b6230db44e7ccfa4fcc.tar.gz
volse-hubzilla-15f011b34c3a6005fc4d0b6230db44e7ccfa4fcc.tar.bz2
volse-hubzilla-15f011b34c3a6005fc4d0b6230db44e7ccfa4fcc.zip
more logging in dfrn_notify
-rw-r--r--mod/dfrn_notify.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index e7dbf74a1..0a3dac254 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -21,8 +21,10 @@ function dfrn_notify_post(&$a) {
dbesc($dfrn_id),
dbesc($challenge)
);
- if(! count($r))
+ if(! count($r)) {
+ logger('dfrn_notify: could not match challenge to dfrn_id ' . $dfrn_id);
xml_status(3);
+ }
$r = q("DELETE FROM `challenge` WHERE `dfrn-id` = '%s' AND `challenge` = '%s' LIMIT 1",
dbesc($dfrn_id),
@@ -56,16 +58,20 @@ function dfrn_notify_post(&$a) {
);
if(! count($r)) {
+ logger('dfrn_notify: contact not found for dfrn_id ' . $dfrn_id);
xml_status(3);
//NOTREACHED
}
$importer = $r[0];
+ logger('dfrn_notify: received notify from ' . $importer['name'] . ' for ' . $importer['username']);
+ logger('dfrn_notify: data: ' . $data, LOGGER_DATA);
if($importer['readonly']) {
// We aren't receiving stuff from this person. But we will quietly ignore them
// rather than a blatant "go away" message.
+ logger('dfrn_notify: ignoring');
xml_status(0);
//NOTREACHED
}
@@ -86,6 +92,8 @@ function dfrn_notify_post(&$a) {
$rawmail = $feed->get_feed_tags( NAMESPACE_DFRN, 'mail' );
if(isset($rawmail[0]['child'][NAMESPACE_DFRN])) {
+ logger('dfrn_notify: private message received');
+
$ismail = true;
$base = $rawmail[0]['child'][NAMESPACE_DFRN];
@@ -391,6 +399,7 @@ function dfrn_notify_content(&$a) {
$dfrn_id = notags(trim($_GET['dfrn_id']));
$dfrn_version = (float) $_GET['dfrn_version'];
+ logger('dfrn_notify: new notification dfrn_id=' . $dfrn_id);
$direction = (-1);
if(strpos($dfrn_id,':') == 1) {