diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-30 14:47:12 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-30 14:47:12 -0400 |
commit | 3cb7562659628722b1a22d24abc40c112cc7d0a2 (patch) | |
tree | b0722494cde3aa08e691afc54e15c518bd8dff22 | |
parent | ba334c2c660e63497ff3d2c8928e99ad4881be08 (diff) |
better debug messages
darcs-hash:20080530184712-84dde-bcea123d79aff11585eacee8b85932543acfe072.gz
-rw-r--r-- | actions/remotesubscribe.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index a77b0d644..53c868c1f 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -78,7 +78,7 @@ class RemotesubscribeAction extends Action { $fetcher = Auth_Yadis_Yadis::getHTTPFetcher(); $yadis = Auth_Yadis_Yadis::discover($profile, $fetcher); - common_debug('remotesubscribe.php: XRDS discovery result: "'.print_r($yadis, TRUE) .'"'); + common_debug('remotesubscribe.php: XRDS discovery failure? "'.$yadis->failed.'"'); if (!$yadis || $yadis->failed) { $this->show_form(_t('Not a valid profile URL (no YADIS document).')); @@ -121,7 +121,10 @@ class RemotesubscribeAction extends Action { return NULL; } + common_debug('remotesubscribe.php: XRDS service count: '.count($services)); + foreach ($services as $service) { + common_debug('remotesubscribe.php: XRDS service "'.print_r($service,TRUE).'"'); $types = $service->matchTypes($endpoints); foreach ($types as $type) { # We take the first one, since it's the highest priority |