mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-04-27 13:50:14 +00:00
Logger Levels
update logger levels
This commit is contained in:
parent
49eff56e5d
commit
c9a8974165
17 changed files with 123 additions and 123 deletions
|
@ -456,7 +456,7 @@ function windowsphonepush_updatecounterunseen()
|
|||
function windowsphonepush_login(App $a)
|
||||
{
|
||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||
Logger::log('API_login: ' . print_r($_SERVER, true), LOGGER_DEBUG);
|
||||
Logger::log('API_login: ' . print_r($_SERVER, true), Logger::DEBUG);
|
||||
header('WWW-Authenticate: Basic realm="Friendica"');
|
||||
header('HTTP/1.0 401 Unauthorized');
|
||||
die('This api requires login');
|
||||
|
@ -467,7 +467,7 @@ function windowsphonepush_login(App $a)
|
|||
if ($user_id) {
|
||||
$record = DBA::selectFirst('user', [], ['uid' => $user_id]);
|
||||
} else {
|
||||
Logger::log('API_login failure: ' . print_r($_SERVER, true), LOGGER_DEBUG);
|
||||
Logger::log('API_login failure: ' . print_r($_SERVER, true), Logger::DEBUG);
|
||||
header('WWW-Authenticate: Basic realm="Friendica"');
|
||||
header('HTTP/1.0 401 Unauthorized');
|
||||
die('This api requires login');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue