]> source.dussan.org Git - nextcloud-server.git/commit
Fix logging data context to file 32242/head
authorThomas Citharel <tcit@tcit.fr>
Mon, 2 May 2022 15:49:32 +0000 (17:49 +0200)
committerThomas Citharel <tcit@tcit.fr>
Mon, 2 May 2022 17:29:35 +0000 (19:29 +0200)
commit1e7d924c61f312364827af1014e765d98e71ac05
tree1549d0fe92e7bba7dfb700b82797ac355bff7b7f
parent3197ae83a4e85b1d26c8df7e5af04d50e89bd539
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