add some more debugging code

darcs-hash:20080612190447-84dde-f5752112cd129b44719114e56bec7f3745c665fd.gz
This commit is contained in:
Evan Prodromou 2008-06-12 15:04:47 -04:00
parent 2bc198432c
commit 4c3a1a9e30

View File

@ -237,9 +237,13 @@ function omb_update_profile($profile, $remote_profile, $subscription) {
$fetcher = Auth_Yadis_Yadis::getHTTPFetcher(); $fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
common_debug('request URL = '.$req->get_normalized_http_url(), __FILE__);
common_debug('postdata = '.$req->to_postdata(), __FILE__);
$result = $fetcher->post($req->get_normalized_http_url(), $result = $fetcher->post($req->get_normalized_http_url(),
$req->to_postdata()); $req->to_postdata());
common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__);
if ($result->status == 403) { # not authorized, don't send again if ($result->status == 403) { # not authorized, don't send again
common_debug('403 result, deleting subscription', __FILE__); common_debug('403 result, deleting subscription', __FILE__);
$subscription->delete(); $subscription->delete();