Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Downgrade the ContextInitialized event from Information to Debug #28480

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
Assignees
Labels
area-dbcontext closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-enhancement
Milestone

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 added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dbcontext closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants