Skip to content

Fix logging data context to file - #32242

Merged
blizzz merged 1 commit into
masterfrom
fix-logging-data-array
Jun 21, 2022
Merged

Fix logging data context to file#32242
blizzz merged 1 commit into
masterfrom
fix-logging-data-array

Conversation

@tcitworld

@tcitworldtcitworld commented May 2, 2022

Copy link
Copy Markdown
Member

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

We make sure only the parameters that weren't interpolated are logged.

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

Crash reporters always had the context.

@tcitworldtcitworld added bug 3. to review Waiting for reviews labels May 2, 2022
@tcitworld
tcitworld requested review from a team, CarlSchwan, ChristophWurst, icewind1991 and juliusknorr and removed request for a teamMay 2, 2022 15:54
@tcitworld
tcitworldforce-pushed the fix-logging-data-array branch from adef8fb to 67ad2cfCompareMay 2, 2022 15:55
@tcitworldtcitworld added this to the Nextcloud 25 milestone May 2, 2022
@tcitworldtcitworld added 2. developing Work in progress and removed 3. to review Waiting for reviews labels May 2, 2022
@tcitworld
tcitworldforce-pushed the fix-logging-data-array branch from 67ad2cf to 613f608CompareMay 2, 2022 16:30
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>
@tcitworld
tcitworldforce-pushed the fix-logging-data-array branch from 613f608 to 1e7d924CompareMay 2, 2022 17:30
@tcitworldtcitworld added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 2, 2022

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@ChristophWurstChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 16, 2022
@blizzz
blizzz merged commit cf5452e into masterJun 21, 2022
@blizzz
blizzz deleted the fix-logging-data-array branch June 21, 2022 16:49
@tcitworld

Copy link
Copy Markdown
MemberAuthor

Backports ?

@blizzz

Copy link
Copy Markdown
Member

imo it's rather an enhancement than a fix?

@tcitworld

Copy link
Copy Markdown
MemberAuthor

It was the behaviour before the switch to PSR's LoggerInterface IIRC, far from being important anyway indeed.

@blizzz

Copy link
Copy Markdown
Member

It was the behaviour before the switch to PSR's LoggerInterface IIRC, far from being important anyway indeed.

didn't recall. Nothing older than yesterday's release 🤷 Well, then it is a regression indeed, and backporting would be legit.

@blizzz

Copy link
Copy Markdown
Member

/backport to stable24

@blizzz

Copy link
Copy Markdown
Member

/backport to stable23

@blizzz

Copy link
Copy Markdown
Member

/backport to stable22

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@tcitworld@blizzz@ChristophWurst@come-nc