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

Move entirely to zerolog #426

Merged
merged 9 commits into from
Oct 12, 2021
Merged

Move entirely to zerolog #426

merged 9 commits into from
Oct 12, 2021

Conversation

jolheiser
Copy link
Member

This is WIP, I haven't had a chance to run it yet.

As a larger refactor I also ran goimports against the whole project...which seems to have made a bit more noise than I intended.

Let me know if you'd like me to try and make it more incremental.

This PR removes logrus (and stdlib log was used in a few places).

It is a start towards #370, however it doesn't add much structured logging. I figured this was already noisy enough and structure could be done in a later PR.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signed-off-by: jolheiser <john.olheiser@gmail.com>
@6543 6543 added the refactor delete or replace old code label Oct 10, 2021
@6543 6543 added this to the 0.15.0 milestone Oct 10, 2021
cli/exec/exec.go Show resolved Hide resolved
cli/exec/exec.go Outdated Show resolved Hide resolved
server/api/stream.go Outdated Show resolved Hide resolved
server/api/stream.go Outdated Show resolved Hide resolved
@jolheiser
Copy link
Member Author

Some of the changes are likely because of running goimports against the codebase.
I've used the existing GOFILES_NOVENDOR, which includes those proto files.

I'll do a bit more cleanup and commit the suggestions here. 👍

jolheiser and others added 3 commits October 10, 2021 12:17
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Signed-off-by: jolheiser <john.olheiser@gmail.com>
@6543
Copy link
Member

6543 commented Oct 10, 2021

make format

Signed-off-by: jolheiser <john.olheiser@gmail.com>
@6543
Copy link
Member

6543 commented Oct 10, 2021

@jolheiser Is it ready [... to review]?

@jolheiser jolheiser marked this pull request as ready for review October 10, 2021 22:24
@jolheiser
Copy link
Member Author

Should be. I ran it lightly locally, but I haven't yet gotten the hang of the ins and outs of testing CI locally haha

@6543
Copy link
Member

6543 commented Oct 12, 2021

did remove addition of lint tool - I tested it and it did not throw an error ...

@jolheiser can you add the lint tool in a seperate pull and add it to the pipeline?

@6543 6543 enabled auto-merge (squash) October 12, 2021 07:21
@6543 6543 merged commit 4276a04 into woodpecker-ci:master Oct 12, 2021
@jolheiser jolheiser deleted the zerolog branch October 12, 2021 13:45
@6543 6543 mentioned this pull request Oct 12, 2021
58 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor delete or replace old code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants