mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +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
|
@ -69,7 +69,7 @@ func (srv *Server) prepareRunEnvoyCommand(ctx context.Context, sharedArgs []stri
|
|||
log.Info(ctx).Msg("envoy: releasing envoy process for hot-reload")
|
||||
err := srv.cmd.Process.Release()
|
||||
if err != nil {
|
||||
log.Warn(ctx).Err(err).Str("service", "envoy").Msg("envoy: failed to release envoy process for hot-reload")
|
||||
log.Error(ctx).Err(err).Str("service", "envoy").Msg("envoy: failed to release envoy process for hot-reload")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -107,14 +107,14 @@ func extract(dstName string) (err error) {
|
|||
func cleanTempDir(tmpDir string) {
|
||||
d, err := os.Open(tmpDir)
|
||||
if err != nil {
|
||||
log.Warn().Msg("envoy: failed to open temp directory for clean up")
|
||||
log.Error().Msg("envoy: failed to open temp directory for clean up")
|
||||
return
|
||||
}
|
||||
defer d.Close()
|
||||
|
||||
fs, err := d.Readdir(-1)
|
||||
if err != nil {
|
||||
log.Warn().Msg("envoy: failed to read files in temporary directory")
|
||||
log.Error().Msg("envoy: failed to read files in temporary directory")
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ func cleanTempDir(tmpDir string) {
|
|||
if f.IsDir() && strings.HasPrefix(f.Name(), envoyPrefix) {
|
||||
err := os.RemoveAll(filepath.Join(tmpDir, f.Name()))
|
||||
if err != nil {
|
||||
log.Warn().Err(err).Msg("envoy: failed to delete previous extracted envoy")
|
||||
log.Error().Err(err).Msg("envoy: failed to delete previous extracted envoy")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue