add logging
This commit is contained in:
parent
4d794103be
commit
f09fe8da78
@ -144,6 +144,9 @@ class Magic extends \Zotlabs\Web\Controller {
|
|||||||
'acct:' . $channel['channel_address'] . '@' . \App::get_hostname(),false,true,'sha512');
|
'acct:' . $channel['channel_address'] . '@' . \App::get_hostname(),false,true,'sha512');
|
||||||
|
|
||||||
$x = z_fetch_url($basepath . '/owa',false,$redirects,[ 'headers' => $headers ]);
|
$x = z_fetch_url($basepath . '/owa',false,$redirects,[ 'headers' => $headers ]);
|
||||||
|
|
||||||
|
logger('owtfetch: ' . print_r($x,true));
|
||||||
|
|
||||||
if($x['success']) {
|
if($x['success']) {
|
||||||
$j = json_decode($x['body'],true);
|
$j = json_decode($x['body'],true);
|
||||||
if($j['success'] && $j['token']) {
|
if($j['success'] && $j['token']) {
|
||||||
|
Reference in New Issue
Block a user