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

Accept DebugLog func via options #20

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

meatballhat
Copy link
Contributor

This change introduces the ability to pass in a debug log func via Options as expected by action.Configuration.Init. When no such func is available in Options, a func is created that passes through format string and args to standard library log.Printf, which is mostly the same as current behavior, although current behavior does not pass through the format args as variadic args (which I assumed was not intentional).

and generate a default DebugLog func that passes along format args.
Copy link
Member

@martin-helmich martin-helmich left a comment

Choose a reason for hiding this comment

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

👍 from me on this -- thanks for the contribution. I agree that not passing v as variadic argument was most likely not intentional. Good catch!

@martin-helmich martin-helmich added bug Something isn't working enhancement New feature or request labels Mar 22, 2021
@martin-helmich martin-helmich merged commit 45291a9 into mittwald:master Mar 22, 2021
@meatballhat meatballhat deleted the mbh-debuglog branch March 22, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants