Skip to content

Commit

Permalink
Display error information
Browse files Browse the repository at this point in the history
  • Loading branch information
maartendekeizer committed Nov 20, 2023
1 parent 8e56da3 commit acc943e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Command/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->sendNotifications($profileLogger, $profile, $runId, AbstractNotification::ON_SUCCESS, $metaData);
$profileLogger->info('Notifications send', []);
} catch (\Exception $e) {
$profileLogger->info('Profile failed, start sending notifications', []);
$profileLogger->info('Profile failed, start sending notifications', [
'e' => get_class($e),
'msg' => $e->getMessage(),
'file' => $e->getFile() . ':' . $e->getLine(),
'trace' => $e->getTraceAsString()
]);
$this->sendNotifications($baseLogger, $profile, $runId, AbstractNotification::ON_FAILURE, [
'e' => get_class($e),
'msg' => $e->getMessage(),
Expand Down

0 comments on commit acc943e

Please sign in to comment.