enterprise-certificate-proxy icon indicating copy to clipboard operation
enterprise-certificate-proxy copied to clipboard

feat: ECP logging to only log when enabled.

Open agrawalradhika-cell opened this issue 4 months ago • 0 comments

This change introduces wrapper functions (ecpLogf, ecpPrint, ecpFatalln, ecpFatalf) that check the ENABLE_ENTERPRISE_CERTIFICATE_LOGS environment variable before writing to the log. This prevents unnecessary calls to log.SetOutput(io.Discard) and ensures that logging is consistently gated by the environment variable. The enableECPLogging function has been renamed to enabledECPLogging for clarity.

agrawalradhika-cell avatar Aug 29 '25 17:08 agrawalradhika-cell