terraform-coop / terraform-provider-foreman

Terraform provider for Foreman
https://registry.terraform.io/providers/terraform-coop/foreman
Mozilla Public License 2.0
35 stars 32 forks source link

Implement TraceFunctionCall; replace Tracef #146

Open bitkeks opened 9 months ago

bitkeks commented 9 months ago

Implements the TraceFunctionCall function in 'utils.go'.

All 'log.Tracef()' calls are replaced with the new function.

Refs #138 See: https://github.com/terraform-coop/terraform-provider-foreman/pull/138#issuecomment-1860428483

bitkeks commented 9 months ago

Refactoring is complete. All log.* calls were replaced to use the new utils.* log functions.

This allows for a better debug output for users which have no code editor or debuggers at hand.

During the refactoring I also fixed some other small issues like typos, formatting or flows. Nothing regarding any logic was changed though, so no user-side changes or errors are to be expected.

bitkeks commented 8 months ago

This merge didn't work, will look into it later this week. It's mainly cosmetic refactoring, so no new features are blocked for now.