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

Drop Legacy Logger from Codebase #4171

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Apr 11, 2024

Move ghcide completely to colog-logging style.
Move plugins that were relying on ideLogger to colog style logging.
Move opentelemetry to colog-logging style.

This allows us to drop legacy code and unify the logging experience in
HLS.

We add a bunch of new Log constructors at various locations that aim to
be identical to their previous Logger statements.

Just a bit of busy work. It started out as migrating ekg to colog style logging. Now only the telemetry logger uses Logger. Fixed.

@fendor fendor force-pushed the enhance/drop-logger-from-shakeextras branch from fb0bfe5 to d8380bd Compare April 11, 2024 20:04
Copy link
Collaborator

@jhrcek jhrcek left a comment

Choose a reason for hiding this comment

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

LGTM

ghcide/src/Development/IDE/Core/OfInterest.hs Outdated Show resolved Hide resolved
Copy link
Collaborator

@jhrcek jhrcek left a comment

Choose a reason for hiding this comment

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

Copy-pasted 2 errors from CI to hopefully save you bit of time 😄

@fendor fendor force-pushed the enhance/drop-logger-from-shakeextras branch 2 times, most recently from 0e7e71c to 552885a Compare April 12, 2024 15:36
@fendor
Copy link
Collaborator Author

fendor commented Apr 12, 2024

I am pretty sure I broke opentelemetry support, so I have yet to fix that :)

@fendor fendor force-pushed the enhance/drop-logger-from-shakeextras branch 3 times, most recently from 427d38f to bfd4629 Compare April 12, 2024 20:44
@fendor
Copy link
Collaborator Author

fendor commented Apr 12, 2024

I think I fixed the opentelemetry stuff, hopefully only minor mistakes. @soulomoon assured me, we can check that opentelemetry still works as expected by looking at the benchmarks :) So, we still have to check the benchmarks and report the results here.

@fendor fendor changed the title Drop Logger from ShakeExtras Drop Legacy Logger from Codebase Apr 14, 2024
ghcide/exe/Main.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/Core/Tracing.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/Core/Tracing.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/Core/Tracing.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/Core/Tracing.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/LSP/HoverDefinition.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/LSP/Notifications.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/Main.hs Outdated Show resolved Hide resolved
ghcide/src/Development/IDE/Plugin/HLS/GhcIde.hs Outdated Show resolved Hide resolved
@fendor fendor force-pushed the enhance/drop-logger-from-shakeextras branch 2 times, most recently from 1515483 to 5bc9fd4 Compare April 15, 2024 18:36
@fendor
Copy link
Collaborator Author

fendor commented Apr 15, 2024

Nothing escapes your eagle-eyed review 😅 Thanks, should be all updated now.

Move ghcide completely to colog-logging style.
Move plugins that were relying on `ideLogger` to colog style logging.
Move opentelemetry to colog-logging style.

This allows us to drop legacy code and unify the logging experience in
HLS.

We add a bunch of new Log constructors at various locations that aim to
be identical to their previous `Logger` statements.
@fendor fendor force-pushed the enhance/drop-logger-from-shakeextras branch from 5bc9fd4 to 5bc5251 Compare April 15, 2024 18:37
@fendor fendor enabled auto-merge (squash) April 15, 2024 18:37
@fendor fendor merged commit 5deb996 into haskell:master Apr 16, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants