Skip to content
Snippets Groups Projects
Commit 5f7a88c7 authored by Luca Rossi's avatar Luca Rossi
Browse files

refs #3396396: Replace deprecated ConsoleLogLevel class.

parent b4c608cf
No related branches found
No related tags found
1 merge request!1refs #3396396: Replace deprecated ConsoleLogLevel class.
......@@ -2,7 +2,6 @@
namespace Drupal\drush_pre_deploy\Commands;
use Consolidation\Log\ConsoleLogLevel;
use Drupal\Core\Update\UpdateRegistry;
use Drupal\Core\Utility\Error;
use Drush\Drupal\Commands\core\DeployHookCommands;
......@@ -21,6 +20,11 @@ class DrushPreDeployCommands extends DeployHookCommands implements SiteAliasMana
use SiteAliasManagerAwareTrait;
/**
* Command successfully completed some operation.
*/
const SUCCESS = 'success';
/**
* {@inheritDoc}
*/
......@@ -120,7 +124,7 @@ class DrushPreDeployCommands extends DeployHookCommands implements SiteAliasMana
$success = $this->doRunPendingHooks($pending);
}
$level = $success ? ConsoleLogLevel::SUCCESS : LogLevel::ERROR;
$level = $success ? self::SUCCESS : LogLevel::ERROR;
$this->logger()->log($level, dt('Finished performing pre deploy hooks.'));
return $success ? self::EXIT_SUCCESS : self::EXIT_FAILURE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment