"print_r" in logging replaced / obsolete stuff removed
This commit is contained in:
parent
9a47e51115
commit
c947b7f211
19 changed files with 43 additions and 81 deletions
|
@ -214,7 +214,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
|||
$params['page'] = 2;
|
||||
}
|
||||
|
||||
Logger::log('Confirm: posting data to ' . $dfrn_confirm . ': ' . print_r($params, true), Logger::DATA);
|
||||
Logger::debug('Confirm: posting data', ['confirm' => $dfrn_confirm, 'parameter' => $params]);
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -372,9 +372,9 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
|||
$forum = (($page == 1) ? 1 : 0);
|
||||
$prv = (($page == 2) ? 1 : 0);
|
||||
|
||||
Logger::log('dfrn_confirm: requestee contacted: ' . $node);
|
||||
Logger::notice('requestee contacted', ['node' => $node]);
|
||||
|
||||
Logger::log('dfrn_confirm: request: POST=' . print_r($_POST, true), Logger::DATA);
|
||||
Logger::debug('request', ['POST' => $_POST]);
|
||||
|
||||
// If $aes_key is set, both of these items require unpacking from the hex transport encoding.
|
||||
|
||||
|
|
|
@ -379,7 +379,7 @@ function dfrn_poll_post(App $a)
|
|||
// NOTREACHED
|
||||
} else {
|
||||
// Update the writable flag if it changed
|
||||
Logger::log('dfrn_poll: post request feed: ' . print_r($_POST, true), Logger::DATA);
|
||||
Logger::debug('post request feed', ['post' => $_POST]);
|
||||
if ($dfrn_version >= 2.21) {
|
||||
if ($perm === 'rw') {
|
||||
$writable = 1;
|
||||
|
@ -521,7 +521,7 @@ function dfrn_poll_content(App $a)
|
|||
if (strlen($s) && strstr($s, '<?xml')) {
|
||||
$xml = XML::parseString($s);
|
||||
|
||||
Logger::log('dfrn_poll: profile: parsed xml: ' . print_r($xml, true), Logger::DATA);
|
||||
Logger::debug(' profile: parsed', ['xml' => $xml]);
|
||||
|
||||
Logger::log('dfrn_poll: secure profile: challenge: ' . $xml->challenge . ' expecting ' . $hash);
|
||||
Logger::log('dfrn_poll: secure profile: sec: ' . $xml->sec . ' expecting ' . $sec);
|
||||
|
|
|
@ -66,7 +66,7 @@ function events_init(App $a)
|
|||
function events_post(App $a)
|
||||
{
|
||||
|
||||
Logger::log('post: ' . print_r($_REQUEST, true), Logger::DATA);
|
||||
Logger::debug('post', ['request' => $_REQUEST]);
|
||||
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
|
@ -120,7 +120,7 @@ function salmon_post(App $a, $xml = '') {
|
|||
$m = Strings::base64UrlDecode($key_info[1]);
|
||||
$e = Strings::base64UrlDecode($key_info[2]);
|
||||
|
||||
Logger::log('key details: ' . print_r($key_info,true), Logger::DEBUG);
|
||||
Logger::info('key details', ['info' => $key_info]);
|
||||
|
||||
$pubkey = Crypto::meToPem($m, $e);
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ function settings_post(App $a)
|
|||
intval($mail_pubmail),
|
||||
intval(local_user())
|
||||
);
|
||||
Logger::log("mail: updating mailaccount. Response: ".print_r($r, true));
|
||||
Logger::notice('updating mailaccount', ['response' => $r]);
|
||||
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d LIMIT 1",
|
||||
intval(local_user())
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue