mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
Logger Levels
update logger levels
This commit is contained in:
parent
49eff56e5d
commit
c9a8974165
17 changed files with 123 additions and 123 deletions
|
@ -104,13 +104,13 @@ function ifttt_post(App $a)
|
|||
|
||||
$user = DBA::selectFirst('user', ['uid'], ['nickname' => $nickname]);
|
||||
if (!DBA::isResult($user)) {
|
||||
Logger::log('User ' . $nickname . ' not found.', LOGGER_DEBUG);
|
||||
Logger::log('User ' . $nickname . ' not found.', Logger::DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
$uid = $user['uid'];
|
||||
|
||||
Logger::log('Received a post for user ' . $uid . ' from ifttt ' . print_r($_REQUEST, true), LOGGER_DEBUG);
|
||||
Logger::log('Received a post for user ' . $uid . ' from ifttt ' . print_r($_REQUEST, true), Logger::DEBUG);
|
||||
|
||||
if (!isset($_REQUEST['key'])) {
|
||||
Logger::log('No key found.');
|
||||
|
@ -121,7 +121,7 @@ function ifttt_post(App $a)
|
|||
|
||||
// Check the key
|
||||
if ($key != PConfig::get($uid, 'ifttt', 'key')) {
|
||||
Logger::log('Invalid key for user ' . $uid, LOGGER_DEBUG);
|
||||
Logger::log('Invalid key for user ' . $uid, Logger::DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ function ifttt_post(App $a)
|
|||
}
|
||||
|
||||
if (!in_array($item['type'], ['status', 'link', 'photo'])) {
|
||||
Logger::log('Unknown item type ' . $item['type'], LOGGER_DEBUG);
|
||||
Logger::log('Unknown item type ' . $item['type'], Logger::DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue