Skip to content

Add stacktrace to PHP info/warning messages #1448

Open
@m-ober

Description

@m-ober

I'm using

$formatter = new LineFormatter();
$formatter->includeStacktraces(true);

For PHP errors (like call to undefined functions) as well as Exceptions, stack traces are now included in the log. But for warnings like

E_WARNING: urlencode() expects parameter 1 to be string, array given

There is no stack trace, which makes it almost impossible to track the problem. Xdebug always shows stack traces, but of course that's only useful when developing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions