Formatting pass

This commit is contained in:
Matthew Barbour 2021-01-18 08:37:32 -06:00
parent bb891f3bd0
commit 32927aea3d
3 changed files with 2 additions and 5 deletions

View file

@ -122,10 +122,8 @@ class CronUploader extends Extension
if (self::$IMPORT_RUNNING) { if (self::$IMPORT_RUNNING) {
$all = $user_config->get_bool(CronUploaderConfig::INCLUDE_ALL_LOGS); $all = $user_config->get_bool(CronUploaderConfig::INCLUDE_ALL_LOGS);
if($event->priority >= $user_config->get_int(CronUploaderConfig::LOG_LEVEL) && if ($event->priority >= $user_config->get_int(CronUploaderConfig::LOG_LEVEL) &&
($event->section==self::NAME || $all)) { ($event->section==self::NAME || $all)) {
$output = "[" . date('Y-m-d H:i:s') . "] " . ($all ? '[' . $event->section . '] ' : '') . "[" . LOGGING_LEVEL_NAMES[$event->priority] . "] " . $event->message; $output = "[" . date('Y-m-d H:i:s') . "] " . ($all ? '[' . $event->section . '] ' : '') . "[" . LOGGING_LEVEL_NAMES[$event->priority] . "] " . $event->message;
echo $output . "\r\n"; echo $output . "\r\n";

View file

@ -13,6 +13,5 @@ class UserConfigTest extends ShimmiePHPUnitTestCase
$this->get_page('user_config'); $this->get_page('user_config');
$this->assert_title(self::OPTIONS_BLOCK_TITLE); $this->assert_title(self::OPTIONS_BLOCK_TITLE);
$this->log_out(); $this->log_out();
} }
} }