Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6382bf1

Browse filesBrowse files
committed
Simplify the log entry for console exceptions
1 parent f778562 commit 6382bf1
Copy full SHA for 6382bf1

File tree

1 file changed

+1
-10
lines changed
Filter options

1 file changed

+1
-10
lines changed

‎src/Symfony/Component/Console/EventListener/ExceptionListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/EventListener/ExceptionListener.php
+1-10Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,7 @@ public function onKernelException(ConsoleExceptionEvent $event)
4242

4343
$exception = $event->getException();
4444

45-
$message = sprintf(
46-
'%s: %s (uncaught exception) at %s line %s while running console command `%s`',
47-
get_class($exception),
48-
$exception->getMessage(),
49-
$exception->getFile(),
50-
$exception->getLine(),
51-
$event->getCommand()->getName()
52-
);
53-
54-
$this->logger->error($message, array('exception' => $exception));
45+
$this->logger->error($exception->getMessage(), array('exception' => $exception));
5546
}
5647

5748
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.