Closed campeon23 closed 1 year ago
Issue Resolved!
Implemented the suggested fix as outlined:
Modified the rootCmd = &cobra.Command{} variable in the main.go package. Introduced a conditional check in the Init() function. This checks the presence of the pprof config file and the state of the ENV_MODE environment variable. When ENV_MODE is set to "development" and the pprof config file exists, the configuration is loaded. If the configuration file is absent in "development" mode, an informative log message is now displayed, advising the use of default settings or noting the absence of pprof profiling. Thorough tests were conducted post-fix:
Tested the build process in both "development" and other modes. The system behaves as expected, handling the pprof configuration appropriately. Given the successful implementation and testing, I'm marking this ticket as closed. Should there be any further issues related to this, please feel free to reopen.
Issue:
Steps to Reproduce:
Actual Behavior:
Suggested Fix:
Affected packages:
Affected Functions/Variables:
Steps to Implement Fix:
Reviewer: Marco A. Villarruel
Priority: Medium