diff --git a/classes/Commands/CheckNewVersionCommand.php b/classes/Commands/CheckNewVersionCommand.php index d571b2124..0459833d2 100644 --- a/classes/Commands/CheckNewVersionCommand.php +++ b/classes/Commands/CheckNewVersionCommand.php @@ -103,7 +103,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int return ExitCode::SUCCESS; } catch (Exception $e) { - $this->logger->error('An error occurred during the check new version process'); + $this->logger->error("An error occurred during the check new version process:\n" . $e); throw $e; } } diff --git a/classes/Commands/CheckRequirementsCommand.php b/classes/Commands/CheckRequirementsCommand.php index 748b5966f..630caaf92 100644 --- a/classes/Commands/CheckRequirementsCommand.php +++ b/classes/Commands/CheckRequirementsCommand.php @@ -101,7 +101,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int return $this->exitCode; } catch (Exception $e) { - $this->logger->error('An error occurred during the check requirements process'); + $this->logger->error("An error occurred during the check requirements process:\n" . $e); throw $e; } } diff --git a/classes/Commands/CreateBackupCommand.php b/classes/Commands/CreateBackupCommand.php index e09c9c694..32ed560c9 100644 --- a/classes/Commands/CreateBackupCommand.php +++ b/classes/Commands/CreateBackupCommand.php @@ -74,7 +74,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int return $exitCode; } catch (Exception $e) { - $this->logger->error('An error occurred during the backup creation process'); + $this->logger->error("An error occurred during the backup creation process::\n" . $e); throw $e; } } diff --git a/classes/Commands/DeleteBackupCommand.php b/classes/Commands/DeleteBackupCommand.php index ad13291e2..b05bb78f0 100644 --- a/classes/Commands/DeleteBackupCommand.php +++ b/classes/Commands/DeleteBackupCommand.php @@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int return $exitCode; } catch (Exception $e) { - $this->logger->error('An error occurred during the delete backup process'); + $this->logger->error("An error occurred during the delete backup process:\n" . $e); throw $e; } } diff --git a/classes/Commands/ListBackupCommand.php b/classes/Commands/ListBackupCommand.php index 2e6ba20a5..4b359cb8b 100644 --- a/classes/Commands/ListBackupCommand.php +++ b/classes/Commands/ListBackupCommand.php @@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int return ExitCode::SUCCESS; } catch (Exception $e) { - $this->logger->error('An error occurred during the backup listing process'); + $this->logger->error("An error occurred during the backup listing process:\n" . $e); throw $e; } } diff --git a/classes/Commands/RestoreCommand.php b/classes/Commands/RestoreCommand.php index da9c0843b..7e78ac099 100644 --- a/classes/Commands/RestoreCommand.php +++ b/classes/Commands/RestoreCommand.php @@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int return $exitCode; } catch (Exception $e) { - $this->logger->error('An error occurred during the restoration process'); + $this->logger->error("An error occurred during the restoration process:\n" . $e); throw $e; } } diff --git a/classes/Commands/UpdateCommand.php b/classes/Commands/UpdateCommand.php index 09b0c7307..d88e864c1 100644 --- a/classes/Commands/UpdateCommand.php +++ b/classes/Commands/UpdateCommand.php @@ -115,7 +115,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int return $this->chainCommand($output); } catch (Exception $e) { - $this->logger->error('An error occurred during the update process'); + $this->logger->error("An error occurred during the update process:\n" . $e); throw $e; } }