From 4c3a1a9e302b5be5cf4a5ca0b499d1a65d88d68c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 12 Jun 2008 15:04:47 -0400 Subject: [PATCH] add some more debugging code darcs-hash:20080612190447-84dde-f5752112cd129b44719114e56bec7f3745c665fd.gz --- lib/omb.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/omb.php b/lib/omb.php index 5f34e9e132..036163fd92 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -237,9 +237,13 @@ function omb_update_profile($profile, $remote_profile, $subscription) { $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(), $req->to_postdata()); + common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__); + if ($result->status == 403) { # not authorized, don't send again common_debug('403 result, deleting subscription', __FILE__); $subscription->delete();