set debug level for very noisy trace info

This commit is contained in:
Friendika 2011-04-26 05:57:53 -07:00
parent a01c40a845
commit 5c34a8b219

View File

@ -122,12 +122,12 @@ function fb_get_friends($uid) {
if($s) { if($s) {
logger('facebook: fb_get_friends: ' . $s); logger('facebook: fb_get_friends: ' . $s);
$j = json_decode($s); $j = json_decode($s);
logger('facebook: fb_get_friends: json: ' . print_r($j,true)); logger('facebook: fb_get_friends: json: ' . print_r($j,true), LOGGER_DATA);
foreach($j->data as $person) { foreach($j->data as $person) {
$s = fetch_url('https://graph.facebook.com/' . $person->id . '?access_token=' . $access_token); $s = fetch_url('https://graph.facebook.com/' . $person->id . '?access_token=' . $access_token);
if($s) { if($s) {
$jp = json_decode($s); $jp = json_decode($s);
logger('fb_get_friends: info: ' . print_r($jp,true)); logger('fb_get_friends: info: ' . print_r($jp,true), LOGGER_DATA);
// always use numeric link for consistency // always use numeric link for consistency