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

feat: support github.com/sirupsen/logrus #370

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

rarguelloF
Copy link
Contributor

No description provided.

@rarguelloF rarguelloF marked this pull request as ready for review October 30, 2024 16:22
@rarguelloF rarguelloF requested a review from a team as a code owner October 30, 2024 16:22
@rarguelloF rarguelloF changed the title feat: add support for github.com/sirupsen/logrus feat: support github.com/sirupsen/logrus Nov 5, 2024
Comment on lines +86 to +89
func(logger logrus.Logger) logrus.Logger {
logger.AddHook(&logrus.DDContextLogHook{})
return logger
}({{ . }})
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't love how this appears to be making more copies than strictly necessary; but I reckon I might be overly pessimistic with how the compiler will treat that, and I don't think this is a line that ought to be on a hot path anyway...

@RomainMuller RomainMuller added this pull request to the merge queue Nov 6, 2024
Merged via the queue into main with commit 10f9df9 Nov 6, 2024
23 checks passed
@RomainMuller RomainMuller deleted the rarguellof/APPSEC-55230/logrus branch November 6, 2024 10:21
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.66%. Comparing base (c91c3e9) to head (1ad9b60).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #370      +/-   ##
==========================================
+ Coverage   60.28%   60.66%   +0.37%     
==========================================
  Files         166      171       +5     
  Lines       11973    12087     +114     
==========================================
+ Hits         7218     7332     +114     
  Misses       4280     4280              
  Partials      475      475              
Components Coverage Δ
Generators 76.98% <ø> (ø)
Instruments 88.05% <ø> (ø)
Go Driver 73.13% <ø> (ø)
Toolexec Driver 70.64% <ø> (ø)
Aspects 71.73% <ø> (ø)
Injector 73.72% <ø> (ø)
Job Server 63.45% <ø> (ø)
Integration Test Suite 54.36% <100.00%> (+0.80%) ⬆️
Other 60.66% <100.00%> (+0.37%) ⬆️
Files with missing lines Coverage Δ
_integration-tests/tests/logrus/base.go 100.00% <100.00%> (ø)
_integration-tests/tests/logrus/global_logger.go 100.00% <100.00%> (ø)
_integration-tests/tests/logrus/new_logger.go 100.00% <100.00%> (ø)
...tegration-tests/tests/logrus/struct_literal_ptr.go 100.00% <100.00%> (ø)
...tegration-tests/tests/logrus/struct_literal_val.go 100.00% <100.00%> (ø)

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.

2 participants