mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Core Logger
implement log() function. more to squash Core Logger Class implement log() function
This commit is contained in:
parent
b53157370a
commit
49eff56e5d
46 changed files with 348 additions and 302 deletions
|
@ -14,6 +14,7 @@ use Friendica\Content\Text\BBCode;
|
|||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Database\DBA;
|
||||
|
||||
|
@ -458,11 +459,11 @@ function tumblr_send(App $a, array &$b) {
|
|||
|
||||
//print_r($params);
|
||||
if ($ret_code == 201) {
|
||||
logger('tumblr_send: success');
|
||||
Logger::log('tumblr_send: success');
|
||||
} elseif ($ret_code == 403) {
|
||||
logger('tumblr_send: authentication failure');
|
||||
Logger::log('tumblr_send: authentication failure');
|
||||
} else {
|
||||
logger('tumblr_send: general error: ' . print_r($x,true));
|
||||
Logger::log('tumblr_send: general error: ' . print_r($x,true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue