hcloud-go icon indicating copy to clipboard operation
hcloud-go copied to clipboard

feat: allow using custom debug write functions

Open jooola opened this issue 1 year ago • 2 comments

Allow to configure custom functions to write the request/response debug logs.

jooola avatar Aug 08 '24 10:08 jooola

We might want to make this configurable, e.g. we have a difference between the terraform logs and our CLI.

Maybe using a logging library is easier?

jooola avatar Aug 08 '24 10:08 jooola

Codecov Report

Attention: Patch coverage is 74.19355% with 8 lines in your changes missing coverage. Please review.

Project coverage is 71.50%. Comparing base (468234e) to head (99246d1). Report is 28 commits behind head on main.

Files with missing lines Patch % Lines
hcloud/client.go 50.00% 4 Missing :warning:
hcloud/client_handler.go 0.00% 1 Missing and 1 partial :warning:
hcloud/client_handler_debug.go 90.47% 1 Missing and 1 partial :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #506      +/-   ##
==========================================
+ Coverage   71.46%   71.50%   +0.04%     
==========================================
  Files          46       46              
  Lines        3935     3959      +24     
==========================================
+ Hits         2812     2831      +19     
- Misses        710      714       +4     
- Partials      413      414       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features:

codecov[bot] avatar Aug 08 '24 10:08 codecov[bot]

This PR has been marked as stale because it has not had recent activity. The bot will close the PR if no further action occurs.

github-actions[bot] avatar Nov 18 '24 13:11 github-actions[bot]