Refactor Loglevels

This commit is contained in:
Philipp Holzer 2019-01-03 09:00:49 +01:00 committed by Hypolite Petovan
parent 19b55f5f8d
commit 6e48df2163
3 changed files with 11 additions and 48 deletions

View file

@ -325,7 +325,7 @@ function api_call(App $a)
/// @TODO round() really everywhere?
Logger::debug(
'API {action} performance',
API_LOG_PREFIX . 'performance',
[
'module' => 'api',
'action' => 'call',
@ -380,7 +380,7 @@ function api_call(App $a)
$o .= $func . ": " . $time . "\n";
}
}
Logger::debug($o, ['module' => 'api', 'action' => 'call']);
Logger::debug(API_LOG_PREFIX . $o, ['module' => 'api', 'action' => 'call']);
}
}
@ -4842,7 +4842,6 @@ function api_friendica_remoteauth()
'sec' => $sec, 'expire' => time() + 45];
DBA::insert('profile_check', $fields);
$a = get_app();
Logger::info(API_LOG_PREFIX . 'for contact {contact}', ['module' => 'api', 'action' => 'friendica_remoteauth', 'contact' => $contact['name'], 'hey' => $sec]);
$dest = ($url ? '&destination_url=' . $url : '');