]> source.dussan.org Git - nextcloud-server.git/commit
Fix logging data context to file 32985/head
authorThomas Citharel <tcit@tcit.fr>
Mon, 2 May 2022 15:49:32 +0000 (17:49 +0200)
committerThomas Citharel <tcit@tcit.fr>
Tue, 30 Aug 2022 16:58:20 +0000 (18:58 +0200)
commit54b0b53295b8b1780cc14529789116c3e703007d
tree6992fb91d5c2e97c54798ac8490f5442caeac3e0
parent1e80b33fa7dff2454b81e8e30c6455440c183954
Fix logging data context to file

It was only logged when an exception was provided or when using
logData (which is not being much used).

We make sure the interpolated parameters are not logged.

Only tested with file write logger, but shouldn't work differently.

Crash reporters always had the context.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
lib/private/Log.php
lib/private/Log/LogDetails.php
tests/lib/Log/FileTest.php
tests/lib/LoggerTest.php