mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18: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
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Logger;
|
||||
|
||||
function pumpio_sync_run(&$argv, &$argc) {
|
||||
$a = Friendica\BaseObject::getApp();
|
||||
|
@ -9,7 +10,7 @@ function pumpio_sync_run(&$argv, &$argc) {
|
|||
if (function_exists('sys_getloadavg')) {
|
||||
$load = sys_getloadavg();
|
||||
if (intval($load[0]) > Config::get('system', 'maxloadavg', 50)) {
|
||||
logger('system: load ' . $load[0] . ' too high. Pumpio sync deferred to next scheduled run.');
|
||||
Logger::log('system: load ' . $load[0] . ' too high. Pumpio sync deferred to next scheduled run.');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue