Problem/Motivation
varbase:entity-update command should show error instead of logging it
Steps to reproduce
Run drush varbase:entity-update
Proposed resolution
diff --git a/docroot/modules/contrib/varbase_core/src/Drush/Commands/VarbaseCoreCommands.php b/docroot/modules/contrib/varbase_core/src/Drush/Commands/VarbaseCoreCommands.php
index 6946b55d3..e6a75d8e8 100644
--- a/docroot/modules/contrib/varbase_core/src/Drush/Commands/VarbaseCoreCommands.php
+++ b/docroot/modules/contrib/varbase_core/src/Drush/Commands/VarbaseCoreCommands.php
@@ -63,10 +63,10 @@ public function applyUpdatesWithEntityDefinitionUpdateManager() {
$this->logger()->success(dt('Applied Entity updates for mismatched entity and/or field definitions'));
}
catch (\Exception $e) {
- \Drupal::logger('Varbase')->critical('Error while drush varbase:entity-update. !code !exception', [
+ $this->logger()->error(dt('Error while drush varbase:entity-update. !code !exception', [
'!code' => $e->getCode(),
'!exception' => $e->getMessage(),
- ]);
+ ]));
}
}
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #7
immaculatexavier commentedI tried to Create MR, But MR error in 9.1.x branch Committed link
Comment #10
immaculatexavier commentedCreated MR for the Proposed resolution. Kindly review.
Comment #11
rajab natshah