logreader icon indicating copy to clipboard operation
logreader copied to clipboard

Show message and exception with trace, but not exception message

Open ChristophWurst opened this issue 2 years ago • 0 comments

Steps to reproduce

  1. Use the PSR logger and log with ->error("Oh no", ['exception' => $e])

Expected behaviour

I see an entry with "Oh no". When I expand the entry I can see the exception message and code and its trace.

Actual behaviour

I see the message of the exception object.

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)

Where did you install Nextcloud from:

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Client configuration

Browser:

Operating system:

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

ChristophWurst avatar Oct 30 '23 19:10 ChristophWurst