Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Command/NewAutoDeleteEntryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$em->flush();
$output->writeln("<success>Success: The entry was successfully created and will be executed on the next command call</success>");
} catch (\Exception $ex) {
if($this->getContainer()->has('nti.logger')) {
$this->getContainer()->get('nti.logger')->logException($ex);
if($this->getContainer()->has('logger')) {
$this->getContainer()->get('logger')->error($ex);
}

$output->writeln("<error>Error: ".$ex->getMessage()."</error>");
Expand Down
4 changes: 2 additions & 2 deletions Command/RemoveAutoDeleteEntryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$em->flush();
$output->writeln("<success>Success: The AutoDeleteEntry was successfully deleted.</success>");
} catch (\Exception $ex) {
if($this->getContainer()->has('nti.logger')) {
$this->getContainer()->get('nti.logger')->logException($ex);
if($this->getContainer()->has('logger')) {
$this->getContainer()->get('logger')->error($ex);
}
$output->writeln("<error>Error: ".$ex->getMessage()."</error>");
}
Expand Down