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

Cleanup logging #816

Merged
merged 14 commits into from Aug 7, 2019
Merged

Cleanup logging #816

merged 14 commits into from Aug 7, 2019

Conversation

arianvp
Copy link
Contributor

@arianvp arianvp commented Aug 6, 2019

We want to make sure that we were using the MonadLogger typeclass everywhere, as this will make it easy to consistently inject metadata into the logs throughout the project.

Turns out, most places where already fine.

I made this PR by using sed and then making stuff compile. So maybe some places we could have left untouched. We should go over the diff and decide what things do not need to be changed, such that the diff becomes a bit smaller

Wasn't possible to do everywhere given Session isn't an instance
of UnlftIO
This allows us to use the classy logger in proxy
This will make it easy for us to inject global information into
the logs consistently everywhere
@arianvp arianvp requested a review from fisx August 6, 2019 09:59
Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

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

The ci is failing, and i have a few requests, otherwise perfect!

I am approving this, but please consider my change requests before you merge. If you want me to look at your changes again, please request a re-review.

libs/api-client/src/Network/Wire/Client/HTTP.hs Outdated Show resolved Hide resolved
services/brig/index/src/Main.hs Outdated Show resolved Hide resolved
services/cannon/src/Cannon/App.hs Outdated Show resolved Hide resolved
services/galley/src/Galley/Run.hs Outdated Show resolved Hide resolved
services/galley/test/integration/Main.hs Outdated Show resolved Hide resolved
services/spar/src/Spar/App.hs Outdated Show resolved Hide resolved
arianvp and others added 6 commits August 7, 2019 10:51
Co-Authored-By: fisx <mf@zerobuzz.net>
Co-Authored-By: fisx <mf@zerobuzz.net>
Co-Authored-By: fisx <mf@zerobuzz.net>
Co-Authored-By: fisx <mf@zerobuzz.net>
@arianvp arianvp merged commit 8685ec1 into develop Aug 7, 2019
@fisx fisx mentioned this pull request Aug 7, 2019
@jschaul jschaul deleted the cleanup-logging branch August 7, 2019 13:02
@fisx fisx mentioned this pull request Aug 8, 2019
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

2 participants