- if (intval($load[0]) > Config::get('system', 'maxloadavg', 50)) {
- logger('system: load ' . $load[0] . ' too high. Twitter sync deferred to next scheduled run.');
+ $maxload = DI::config()->get('system', 'maxloadavg', 50);
+ if (intval($load[0]) > $maxload) {
+ Logger::notice('load too high. Twitter sync deferred to next scheduled run.', ['current' => $load[0], 'max' => $maxload]);