enterprise-certificate-proxy
enterprise-certificate-proxy copied to clipboard
feat: ECP logging to only log when enabled.
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.