@@ -101,43 +101,43 @@ discard block |
||
101 | 101 | $this->logAllEvents(); |
102 | 102 | |
103 | 103 | $logLevel = $this->config->getSystemValue('loglevel', Util::WARN); |
104 | - $this->emit('\OC\Updater', 'setDebugLogLevel', [ $logLevel, $this->logLevelNames[$logLevel] ]); |
|
104 | + $this->emit('\OC\Updater', 'setDebugLogLevel', [$logLevel, $this->logLevelNames[$logLevel]]); |
|
105 | 105 | $this->config->setSystemValue('loglevel', Util::DEBUG); |
106 | 106 | |
107 | 107 | $wasMaintenanceModeEnabled = $this->config->getSystemValue('maintenance', false); |
108 | 108 | |
109 | - if(!$wasMaintenanceModeEnabled) { |
|
109 | + if (!$wasMaintenanceModeEnabled) { |
|
110 | 110 | $this->config->setSystemValue('maintenance', true); |
111 | 111 | $this->emit('\OC\Updater', 'maintenanceEnabled'); |
112 | 112 | } |
113 | 113 | |
114 | 114 | $installedVersion = $this->config->getSystemValue('version', '0.0.0'); |
115 | 115 | $currentVersion = implode('.', \OCP\Util::getVersion()); |
116 | - $this->log->debug('starting upgrade from ' . $installedVersion . ' to ' . $currentVersion, array('app' => 'core')); |
|
116 | + $this->log->debug('starting upgrade from '.$installedVersion.' to '.$currentVersion, array('app' => 'core')); |
|
117 | 117 | |
118 | 118 | $success = true; |
119 | 119 | try { |
120 | 120 | $this->doUpgrade($currentVersion, $installedVersion); |
121 | 121 | } catch (HintException $exception) { |
122 | 122 | $this->log->logException($exception, ['app' => 'core']); |
123 | - $this->emit('\OC\Updater', 'failure', array($exception->getMessage() . ': ' .$exception->getHint())); |
|
123 | + $this->emit('\OC\Updater', 'failure', array($exception->getMessage().': '.$exception->getHint())); |
|
124 | 124 | $success = false; |
125 | 125 | } catch (\Exception $exception) { |
126 | 126 | $this->log->logException($exception, ['app' => 'core']); |
127 | - $this->emit('\OC\Updater', 'failure', array(get_class($exception) . ': ' .$exception->getMessage())); |
|
127 | + $this->emit('\OC\Updater', 'failure', array(get_class($exception).': '.$exception->getMessage())); |
|
128 | 128 | $success = false; |
129 | 129 | } |
130 | 130 | |
131 | 131 | $this->emit('\OC\Updater', 'updateEnd', array($success)); |
132 | 132 | |
133 | - if(!$wasMaintenanceModeEnabled && $success) { |
|
133 | + if (!$wasMaintenanceModeEnabled && $success) { |
|
134 | 134 | $this->config->setSystemValue('maintenance', false); |
135 | 135 | $this->emit('\OC\Updater', 'maintenanceDisabled'); |
136 | 136 | } else { |
137 | 137 | $this->emit('\OC\Updater', 'maintenanceActive'); |
138 | 138 | } |
139 | 139 | |
140 | - $this->emit('\OC\Updater', 'resetLogLevel', [ $logLevel, $this->logLevelNames[$logLevel] ]); |
|
140 | + $this->emit('\OC\Updater', 'resetLogLevel', [$logLevel, $this->logLevelNames[$logLevel]]); |
|
141 | 141 | $this->config->setSystemValue('loglevel', $logLevel); |
142 | 142 | $this->config->setSystemValue('installed', true); |
143 | 143 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | */ |
152 | 152 | private function getAllowedPreviousVersions() { |
153 | 153 | // this should really be a JSON file |
154 | - require \OC::$SERVERROOT . '/version.php'; |
|
154 | + require \OC::$SERVERROOT.'/version.php'; |
|
155 | 155 | /** @var array $OC_VersionCanBeUpgradedFrom */ |
156 | 156 | return $OC_VersionCanBeUpgradedFrom; |
157 | 157 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | private function getVendor() { |
165 | 165 | // this should really be a JSON file |
166 | - require \OC::$SERVERROOT . '/version.php'; |
|
166 | + require \OC::$SERVERROOT.'/version.php'; |
|
167 | 167 | /** @var string $vendor */ |
168 | 168 | return (string) $vendor; |
169 | 169 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public function isUpgradePossible($oldVersion, $newVersion, array $allowedPreviousVersions) { |
179 | 179 | $version = explode('.', $oldVersion); |
180 | - $majorMinor = $version[0] . '.' . $version[1]; |
|
180 | + $majorMinor = $version[0].'.'.$version[1]; |
|
181 | 181 | |
182 | 182 | $currentVendor = $this->config->getAppValue('core', 'vendor', ''); |
183 | 183 | |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | // create empty file in data dir, so we can later find |
225 | 225 | // out that this is indeed an ownCloud data directory |
226 | 226 | // (in case it didn't exist before) |
227 | - file_put_contents($this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/.ocdata', ''); |
|
227 | + file_put_contents($this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/.ocdata', ''); |
|
228 | 228 | |
229 | 229 | // pre-upgrade repairs |
230 | 230 | $repair = new Repair(Repair::getBeforeUpgradeRepairSteps(), \OC::$server->getEventDispatcher()); |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | foreach ($errors as $appId => $exception) { |
257 | 257 | /** @var \Exception $exception */ |
258 | 258 | $this->log->logException($exception, ['app' => $appId]); |
259 | - $this->emit('\OC\Updater', 'failure', [$appId . ': ' . $exception->getMessage()]); |
|
259 | + $this->emit('\OC\Updater', 'failure', [$appId.': '.$exception->getMessage()]); |
|
260 | 260 | } |
261 | 261 | |
262 | 262 | // post-upgrade repairs |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | $this->config->setAppValue('core', 'lastupdatedat', 0); |
268 | 268 | |
269 | 269 | // Check for code integrity if not disabled |
270 | - if(\OC::$server->getIntegrityCodeChecker()->isCodeCheckEnforced()) { |
|
270 | + if (\OC::$server->getIntegrityCodeChecker()->isCodeCheckEnforced()) { |
|
271 | 271 | $this->emit('\OC\Updater', 'startCheckCodeIntegrity'); |
272 | 272 | $this->checker->runInstanceVerification(); |
273 | 273 | $this->emit('\OC\Updater', 'finishedCheckCodeIntegrity'); |
@@ -308,12 +308,12 @@ discard block |
||
308 | 308 | * @link https://github.com/owncloud/core/issues/10980 |
309 | 309 | * @see \OC_App::updateApp |
310 | 310 | */ |
311 | - if (file_exists(\OC_App::getAppPath($appId) . '/appinfo/preupdate.php')) { |
|
311 | + if (file_exists(\OC_App::getAppPath($appId).'/appinfo/preupdate.php')) { |
|
312 | 312 | $this->includePreUpdate($appId); |
313 | 313 | } |
314 | - if (file_exists(\OC_App::getAppPath($appId) . '/appinfo/database.xml')) { |
|
314 | + if (file_exists(\OC_App::getAppPath($appId).'/appinfo/database.xml')) { |
|
315 | 315 | $this->emit('\OC\Updater', 'appSimulateUpdate', array($appId)); |
316 | - \OC_DB::simulateUpdateDbFromStructure(\OC_App::getAppPath($appId) . '/appinfo/database.xml'); |
|
316 | + \OC_DB::simulateUpdateDbFromStructure(\OC_App::getAppPath($appId).'/appinfo/database.xml'); |
|
317 | 317 | } |
318 | 318 | } |
319 | 319 | } |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * @param string $appId |
327 | 327 | */ |
328 | 328 | private function includePreUpdate($appId) { |
329 | - include \OC_App::getAppPath($appId) . '/appinfo/preupdate.php'; |
|
329 | + include \OC_App::getAppPath($appId).'/appinfo/preupdate.php'; |
|
330 | 330 | } |
331 | 331 | |
332 | 332 | /** |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | foreach ($apps as $appId) { |
345 | 345 | $priorityType = false; |
346 | 346 | foreach ($priorityTypes as $type) { |
347 | - if(!isset($stacks[$type])) { |
|
347 | + if (!isset($stacks[$type])) { |
|
348 | 348 | $stacks[$type] = array(); |
349 | 349 | } |
350 | 350 | if (\OC_App::isType($appId, $type)) { |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | \OC_App::updateApp($appId); |
365 | 365 | $this->emit('\OC\Updater', 'appUpgrade', [$appId, \OC_App::getAppVersion($appId)]); |
366 | 366 | } |
367 | - if($type !== $pseudoOtherType) { |
|
367 | + if ($type !== $pseudoOtherType) { |
|
368 | 368 | // load authentication, filesystem and logging apps after |
369 | 369 | // upgrading them. Other apps my need to rely on modifying |
370 | 370 | // user and/or filesystem aspects. |
@@ -392,9 +392,9 @@ discard block |
||
392 | 392 | foreach ($apps as $app) { |
393 | 393 | // check if the app is compatible with this version of ownCloud |
394 | 394 | $info = OC_App::getAppInfo($app); |
395 | - if(!OC_App::isAppCompatible($version, $info)) { |
|
395 | + if (!OC_App::isAppCompatible($version, $info)) { |
|
396 | 396 | if ($appManager->isShipped($app)) { |
397 | - throw new \UnexpectedValueException('The files of the app "' . $app . '" were not correctly replaced before running the update'); |
|
397 | + throw new \UnexpectedValueException('The files of the app "'.$app.'" were not correctly replaced before running the update'); |
|
398 | 398 | } |
399 | 399 | OC_App::disable($app); |
400 | 400 | $this->emit('\OC\Updater', 'incompatibleAppDisabled', array($app)); |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | * @throws \Exception |
434 | 434 | */ |
435 | 435 | private function upgradeAppStoreApps(array $disabledApps, $reenable = false) { |
436 | - foreach($disabledApps as $app) { |
|
436 | + foreach ($disabledApps as $app) { |
|
437 | 437 | try { |
438 | 438 | $this->emit('\OC\Updater', 'checkAppStoreAppBefore', [$app]); |
439 | 439 | if ($this->installer->isUpdateAvailable($app)) { |
@@ -457,22 +457,22 @@ discard block |
||
457 | 457 | */ |
458 | 458 | private function emitRepairEvents() { |
459 | 459 | $dispatcher = \OC::$server->getEventDispatcher(); |
460 | - $dispatcher->addListener('\OC\Repair::warning', function ($event) { |
|
460 | + $dispatcher->addListener('\OC\Repair::warning', function($event) { |
|
461 | 461 | if ($event instanceof GenericEvent) { |
462 | 462 | $this->emit('\OC\Updater', 'repairWarning', $event->getArguments()); |
463 | 463 | } |
464 | 464 | }); |
465 | - $dispatcher->addListener('\OC\Repair::error', function ($event) { |
|
465 | + $dispatcher->addListener('\OC\Repair::error', function($event) { |
|
466 | 466 | if ($event instanceof GenericEvent) { |
467 | 467 | $this->emit('\OC\Updater', 'repairError', $event->getArguments()); |
468 | 468 | } |
469 | 469 | }); |
470 | - $dispatcher->addListener('\OC\Repair::info', function ($event) { |
|
470 | + $dispatcher->addListener('\OC\Repair::info', function($event) { |
|
471 | 471 | if ($event instanceof GenericEvent) { |
472 | 472 | $this->emit('\OC\Updater', 'repairInfo', $event->getArguments()); |
473 | 473 | } |
474 | 474 | }); |
475 | - $dispatcher->addListener('\OC\Repair::step', function ($event) { |
|
475 | + $dispatcher->addListener('\OC\Repair::step', function($event) { |
|
476 | 476 | if ($event instanceof GenericEvent) { |
477 | 477 | $this->emit('\OC\Updater', 'repairStep', $event->getArguments()); |
478 | 478 | } |
@@ -487,13 +487,13 @@ discard block |
||
487 | 487 | if (!$event instanceof GenericEvent) { |
488 | 488 | return; |
489 | 489 | } |
490 | - $log->info('\OC\DB\Migrator::executeSql: ' . $event->getSubject() . ' (' . $event->getArgument(0) . ' of ' . $event->getArgument(1) . ')', ['app' => 'updater']); |
|
490 | + $log->info('\OC\DB\Migrator::executeSql: '.$event->getSubject().' ('.$event->getArgument(0).' of '.$event->getArgument(1).')', ['app' => 'updater']); |
|
491 | 491 | }); |
492 | 492 | $dispatcher->addListener('\OC\DB\Migrator::checkTable', function($event) use ($log) { |
493 | 493 | if (!$event instanceof GenericEvent) { |
494 | 494 | return; |
495 | 495 | } |
496 | - $log->info('\OC\DB\Migrator::checkTable: ' . $event->getSubject() . ' (' . $event->getArgument(0) . ' of ' . $event->getArgument(1) . ')', ['app' => 'updater']); |
|
496 | + $log->info('\OC\DB\Migrator::checkTable: '.$event->getSubject().' ('.$event->getArgument(0).' of '.$event->getArgument(1).')', ['app' => 'updater']); |
|
497 | 497 | }); |
498 | 498 | |
499 | 499 | $repairListener = function($event) use ($log) { |
@@ -502,30 +502,30 @@ discard block |
||
502 | 502 | } |
503 | 503 | switch ($event->getSubject()) { |
504 | 504 | case '\OC\Repair::startProgress': |
505 | - $log->info('\OC\Repair::startProgress: Starting ... ' . $event->getArgument(1) . ' (' . $event->getArgument(0) . ')', ['app' => 'updater']); |
|
505 | + $log->info('\OC\Repair::startProgress: Starting ... '.$event->getArgument(1).' ('.$event->getArgument(0).')', ['app' => 'updater']); |
|
506 | 506 | break; |
507 | 507 | case '\OC\Repair::advance': |
508 | 508 | $desc = $event->getArgument(1); |
509 | 509 | if (empty($desc)) { |
510 | 510 | $desc = ''; |
511 | 511 | } |
512 | - $log->info('\OC\Repair::advance: ' . $desc . ' (' . $event->getArgument(0) . ')', ['app' => 'updater']); |
|
512 | + $log->info('\OC\Repair::advance: '.$desc.' ('.$event->getArgument(0).')', ['app' => 'updater']); |
|
513 | 513 | |
514 | 514 | break; |
515 | 515 | case '\OC\Repair::finishProgress': |
516 | 516 | $log->info('\OC\Repair::finishProgress', ['app' => 'updater']); |
517 | 517 | break; |
518 | 518 | case '\OC\Repair::step': |
519 | - $log->info('\OC\Repair::step: Repair step: ' . $event->getArgument(0), ['app' => 'updater']); |
|
519 | + $log->info('\OC\Repair::step: Repair step: '.$event->getArgument(0), ['app' => 'updater']); |
|
520 | 520 | break; |
521 | 521 | case '\OC\Repair::info': |
522 | - $log->info('\OC\Repair::info: Repair info: ' . $event->getArgument(0), ['app' => 'updater']); |
|
522 | + $log->info('\OC\Repair::info: Repair info: '.$event->getArgument(0), ['app' => 'updater']); |
|
523 | 523 | break; |
524 | 524 | case '\OC\Repair::warning': |
525 | - $log->warning('\OC\Repair::warning: Repair warning: ' . $event->getArgument(0), ['app' => 'updater']); |
|
525 | + $log->warning('\OC\Repair::warning: Repair warning: '.$event->getArgument(0), ['app' => 'updater']); |
|
526 | 526 | break; |
527 | 527 | case '\OC\Repair::error': |
528 | - $log->error('\OC\Repair::error: Repair error: ' . $event->getArgument(0), ['app' => 'updater']); |
|
528 | + $log->error('\OC\Repair::error: Repair error: '.$event->getArgument(0), ['app' => 'updater']); |
|
529 | 529 | break; |
530 | 530 | } |
531 | 531 | }; |
@@ -539,74 +539,74 @@ discard block |
||
539 | 539 | $dispatcher->addListener('\OC\Repair::error', $repairListener); |
540 | 540 | |
541 | 541 | |
542 | - $this->listen('\OC\Updater', 'maintenanceEnabled', function () use($log) { |
|
542 | + $this->listen('\OC\Updater', 'maintenanceEnabled', function() use($log) { |
|
543 | 543 | $log->info('\OC\Updater::maintenanceEnabled: Turned on maintenance mode', ['app' => 'updater']); |
544 | 544 | }); |
545 | - $this->listen('\OC\Updater', 'maintenanceDisabled', function () use($log) { |
|
545 | + $this->listen('\OC\Updater', 'maintenanceDisabled', function() use($log) { |
|
546 | 546 | $log->info('\OC\Updater::maintenanceDisabled: Turned off maintenance mode', ['app' => 'updater']); |
547 | 547 | }); |
548 | - $this->listen('\OC\Updater', 'maintenanceActive', function () use($log) { |
|
548 | + $this->listen('\OC\Updater', 'maintenanceActive', function() use($log) { |
|
549 | 549 | $log->info('\OC\Updater::maintenanceActive: Maintenance mode is kept active', ['app' => 'updater']); |
550 | 550 | }); |
551 | - $this->listen('\OC\Updater', 'updateEnd', function ($success) use($log) { |
|
551 | + $this->listen('\OC\Updater', 'updateEnd', function($success) use($log) { |
|
552 | 552 | if ($success) { |
553 | 553 | $log->info('\OC\Updater::updateEnd: Update successful', ['app' => 'updater']); |
554 | 554 | } else { |
555 | 555 | $log->error('\OC\Updater::updateEnd: Update failed', ['app' => 'updater']); |
556 | 556 | } |
557 | 557 | }); |
558 | - $this->listen('\OC\Updater', 'dbUpgradeBefore', function () use($log) { |
|
558 | + $this->listen('\OC\Updater', 'dbUpgradeBefore', function() use($log) { |
|
559 | 559 | $log->info('\OC\Updater::dbUpgradeBefore: Updating database schema', ['app' => 'updater']); |
560 | 560 | }); |
561 | - $this->listen('\OC\Updater', 'dbUpgrade', function () use($log) { |
|
561 | + $this->listen('\OC\Updater', 'dbUpgrade', function() use($log) { |
|
562 | 562 | $log->info('\OC\Updater::dbUpgrade: Updated database', ['app' => 'updater']); |
563 | 563 | }); |
564 | - $this->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use($log) { |
|
564 | + $this->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function() use($log) { |
|
565 | 565 | $log->info('\OC\Updater::dbSimulateUpgradeBefore: Checking whether the database schema can be updated (this can take a long time depending on the database size)', ['app' => 'updater']); |
566 | 566 | }); |
567 | - $this->listen('\OC\Updater', 'dbSimulateUpgrade', function () use($log) { |
|
567 | + $this->listen('\OC\Updater', 'dbSimulateUpgrade', function() use($log) { |
|
568 | 568 | $log->info('\OC\Updater::dbSimulateUpgrade: Checked database schema update', ['app' => 'updater']); |
569 | 569 | }); |
570 | - $this->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use($log) { |
|
571 | - $log->info('\OC\Updater::incompatibleAppDisabled: Disabled incompatible app: ' . $app, ['app' => 'updater']); |
|
570 | + $this->listen('\OC\Updater', 'incompatibleAppDisabled', function($app) use($log) { |
|
571 | + $log->info('\OC\Updater::incompatibleAppDisabled: Disabled incompatible app: '.$app, ['app' => 'updater']); |
|
572 | 572 | }); |
573 | - $this->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use($log) { |
|
574 | - $log->info('\OC\Updater::checkAppStoreAppBefore: Checking for update of app "' . $app . '" in appstore', ['app' => 'updater']); |
|
573 | + $this->listen('\OC\Updater', 'checkAppStoreAppBefore', function($app) use($log) { |
|
574 | + $log->info('\OC\Updater::checkAppStoreAppBefore: Checking for update of app "'.$app.'" in appstore', ['app' => 'updater']); |
|
575 | 575 | }); |
576 | - $this->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use($log) { |
|
577 | - $log->info('\OC\Updater::upgradeAppStoreApp: Update app "' . $app . '" from appstore', ['app' => 'updater']); |
|
576 | + $this->listen('\OC\Updater', 'upgradeAppStoreApp', function($app) use($log) { |
|
577 | + $log->info('\OC\Updater::upgradeAppStoreApp: Update app "'.$app.'" from appstore', ['app' => 'updater']); |
|
578 | 578 | }); |
579 | - $this->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use($log) { |
|
580 | - $log->info('\OC\Updater::checkAppStoreApp: Checked for update of app "' . $app . '" in appstore', ['app' => 'updater']); |
|
579 | + $this->listen('\OC\Updater', 'checkAppStoreApp', function($app) use($log) { |
|
580 | + $log->info('\OC\Updater::checkAppStoreApp: Checked for update of app "'.$app.'" in appstore', ['app' => 'updater']); |
|
581 | 581 | }); |
582 | - $this->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($log) { |
|
582 | + $this->listen('\OC\Updater', 'appUpgradeCheckBefore', function() use ($log) { |
|
583 | 583 | $log->info('\OC\Updater::appUpgradeCheckBefore: Checking updates of apps', ['app' => 'updater']); |
584 | 584 | }); |
585 | - $this->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($log) { |
|
586 | - $log->info('\OC\Updater::appSimulateUpdate: Checking whether the database schema for <' . $app . '> can be updated (this can take a long time depending on the database size)', ['app' => 'updater']); |
|
585 | + $this->listen('\OC\Updater', 'appSimulateUpdate', function($app) use ($log) { |
|
586 | + $log->info('\OC\Updater::appSimulateUpdate: Checking whether the database schema for <'.$app.'> can be updated (this can take a long time depending on the database size)', ['app' => 'updater']); |
|
587 | 587 | }); |
588 | - $this->listen('\OC\Updater', 'appUpgradeCheck', function () use ($log) { |
|
588 | + $this->listen('\OC\Updater', 'appUpgradeCheck', function() use ($log) { |
|
589 | 589 | $log->info('\OC\Updater::appUpgradeCheck: Checked database schema update for apps', ['app' => 'updater']); |
590 | 590 | }); |
591 | - $this->listen('\OC\Updater', 'appUpgradeStarted', function ($app) use ($log) { |
|
592 | - $log->info('\OC\Updater::appUpgradeStarted: Updating <' . $app . '> ...', ['app' => 'updater']); |
|
591 | + $this->listen('\OC\Updater', 'appUpgradeStarted', function($app) use ($log) { |
|
592 | + $log->info('\OC\Updater::appUpgradeStarted: Updating <'.$app.'> ...', ['app' => 'updater']); |
|
593 | 593 | }); |
594 | - $this->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($log) { |
|
595 | - $log->info('\OC\Updater::appUpgrade: Updated <' . $app . '> to ' . $version, ['app' => 'updater']); |
|
594 | + $this->listen('\OC\Updater', 'appUpgrade', function($app, $version) use ($log) { |
|
595 | + $log->info('\OC\Updater::appUpgrade: Updated <'.$app.'> to '.$version, ['app' => 'updater']); |
|
596 | 596 | }); |
597 | - $this->listen('\OC\Updater', 'failure', function ($message) use($log) { |
|
598 | - $log->error('\OC\Updater::failure: ' . $message, ['app' => 'updater']); |
|
597 | + $this->listen('\OC\Updater', 'failure', function($message) use($log) { |
|
598 | + $log->error('\OC\Updater::failure: '.$message, ['app' => 'updater']); |
|
599 | 599 | }); |
600 | - $this->listen('\OC\Updater', 'setDebugLogLevel', function () use($log) { |
|
600 | + $this->listen('\OC\Updater', 'setDebugLogLevel', function() use($log) { |
|
601 | 601 | $log->info('\OC\Updater::setDebugLogLevel: Set log level to debug', ['app' => 'updater']); |
602 | 602 | }); |
603 | - $this->listen('\OC\Updater', 'resetLogLevel', function ($logLevel, $logLevelName) use($log) { |
|
604 | - $log->info('\OC\Updater::resetLogLevel: Reset log level to ' . $logLevelName . '(' . $logLevel . ')', ['app' => 'updater']); |
|
603 | + $this->listen('\OC\Updater', 'resetLogLevel', function($logLevel, $logLevelName) use($log) { |
|
604 | + $log->info('\OC\Updater::resetLogLevel: Reset log level to '.$logLevelName.'('.$logLevel.')', ['app' => 'updater']); |
|
605 | 605 | }); |
606 | - $this->listen('\OC\Updater', 'startCheckCodeIntegrity', function () use($log) { |
|
606 | + $this->listen('\OC\Updater', 'startCheckCodeIntegrity', function() use($log) { |
|
607 | 607 | $log->info('\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...', ['app' => 'updater']); |
608 | 608 | }); |
609 | - $this->listen('\OC\Updater', 'finishedCheckCodeIntegrity', function () use($log) { |
|
609 | + $this->listen('\OC\Updater', 'finishedCheckCodeIntegrity', function() use($log) { |
|
610 | 610 | $log->info('\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check', ['app' => 'updater']); |
611 | 611 | }); |
612 | 612 |