core/logs: remove warnings

This commit is contained in:
Caleb Doxsey 2024-08-23 11:58:22 -06:00
parent 98cea10421
commit 0da3d1098f
32 changed files with 70 additions and 78 deletions

View file

@ -12,7 +12,7 @@ var warnCookieSecretOnce sync.Once
// WarnCookieSecret warns about the cookie secret.
func WarnCookieSecret() {
warnCookieSecretOnce.Do(func() {
Warn(context.Background()).
Info(context.Background()).
Msg("using a generated COOKIE_SECRET. " +
"Set the COOKIE_SECRET to avoid users being logged out on restart. " +
"https://www.pomerium.com/docs/reference/cookie-secret")
@ -24,7 +24,7 @@ var warnNoTLSCertificateOnce syncutil.OnceMap[string]
// WarnNoTLSCertificate warns about no TLS certificate.
func WarnNoTLSCertificate(domain string) {
warnNoTLSCertificateOnce.Do(domain, func() {
Warn(context.Background()).
Info(context.Background()).
Str("domain", domain).
Msg("no TLS certificate found for domain, using a self-signed certificate")
})
@ -35,7 +35,7 @@ var warnWebSocketHTTP1_1Once syncutil.OnceMap[string]
// WarnWebSocketHTTP1_1 warns about falling back to http 1.1 due to web socket support.
func WarnWebSocketHTTP1_1(clusterID string) {
warnWebSocketHTTP1_1Once.Do(clusterID, func() {
Warn(context.Background()).
Info(context.Background()).
Str("cluster-id", clusterID).
Msg("forcing http/1.1 due to web socket support")
})