mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:50:10 +00:00
Refactor Loglevels
This commit is contained in:
parent
19b55f5f8d
commit
6e48df2163
3 changed files with 11 additions and 48 deletions
|
@ -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 : '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue