mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
core/logs: remove warnings (#5235)
* core/logs: remove warnings * switch to error
This commit is contained in:
parent
556b2e0d73
commit
d062f9d68d
32 changed files with 70 additions and 78 deletions
|
@ -458,7 +458,7 @@ func (p *Policy) Validate() error {
|
|||
source.String())
|
||||
}
|
||||
if source.Scheme == "http" {
|
||||
log.Warn(context.Background()).Msgf("config: policy source url (%s) uses HTTP but only HTTPS is supported",
|
||||
log.Info(context.Background()).Msgf("config: policy source url (%s) uses HTTP but only HTTPS is supported",
|
||||
source.String())
|
||||
}
|
||||
|
||||
|
@ -522,7 +522,7 @@ func (p *Policy) Validate() error {
|
|||
"reference/routes/tls#tls-downstream-client-certificate-authority for more information"
|
||||
|
||||
if p.TLSDownstreamClientCA != "" {
|
||||
log.Warn(context.Background()).Msgf(clientCADeprecationMsg, "tls_downstream_client_ca")
|
||||
log.Info(context.Background()).Msgf(clientCADeprecationMsg, "tls_downstream_client_ca")
|
||||
_, err := base64.StdEncoding.DecodeString(p.TLSDownstreamClientCA)
|
||||
if err != nil {
|
||||
return fmt.Errorf("config: couldn't decode downstream client ca: %w", err)
|
||||
|
@ -530,7 +530,7 @@ func (p *Policy) Validate() error {
|
|||
}
|
||||
|
||||
if p.TLSDownstreamClientCAFile != "" {
|
||||
log.Warn(context.Background()).Msgf(clientCADeprecationMsg, "tls_downstream_client_ca_file")
|
||||
log.Info(context.Background()).Msgf(clientCADeprecationMsg, "tls_downstream_client_ca_file")
|
||||
bs, err := os.ReadFile(p.TLSDownstreamClientCAFile)
|
||||
if err != nil {
|
||||
return fmt.Errorf("config: couldn't load downstream client ca: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue