Skip to content

Downgrade the ContextInitialized event from Information to Debug #28480

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
roji opened this issue Jul 19, 2022 · 0 comments · Fixed by #28564
Closed

Downgrade the ContextInitialized event from Information to Debug #28480

roji opened this issue Jul 19, 2022 · 0 comments · Fixed by #28564

Comments

@roji
Copy link
Member

roji commented Jul 19, 2022

Every time a context is initialized, we log the following in Information:

info: 7/19/2022 16:59:14.052 CoreEventId.ContextInitialized[10403] (Microsoft.EntityFrameworkCore.Infrastructure) 
      Entity Framework Core 6.0.4 initialized 'BlogContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.4' with options: SensitiveDataLoggingEnabled 

That seems like pretty low-level data that should be Debug/Trace rather than Information (flagged by a user as spam in #4563).

@ajcvickers ajcvickers added this to the 7.0.0 milestone Jul 28, 2022
@ajcvickers ajcvickers changed the title Consider downgrading the ContextInitialized event from Information to Debug Downgraded the ContextInitialized event from Information to Debug Aug 1, 2022
@ajcvickers ajcvickers changed the title Downgraded the ContextInitialized event from Information to Debug Downgrade the ContextInitialized event from Information to Debug Aug 1, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0, 7.0.0-rc1 Aug 6, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0-rc1, 7.0.0 Nov 5, 2022
@ajcvickers ajcvickers removed their assignment Aug 31, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants