mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-01 03:16:31 +02:00
remove noisy logs
This commit is contained in:
parent
1f30dead31
commit
80f685bcc2
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ func CacheDir() string {
|
||||||
dir = filepath.Join(dir, "pomerium")
|
dir = filepath.Join(dir, "pomerium")
|
||||||
} else {
|
} else {
|
||||||
dir = filepath.Join(os.TempDir(), "pomerium", "cache")
|
dir = filepath.Join(os.TempDir(), "pomerium", "cache")
|
||||||
log.Error().Msgf("user cache directory not set, defaulting to %s", dir)
|
log.Debug().Msgf("user cache directory not set, defaulting to %s", dir)
|
||||||
}
|
}
|
||||||
return dir
|
return dir
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ func DataDir() string {
|
||||||
} else {
|
} else {
|
||||||
dir = filepath.Join(os.TempDir(), "pomerium", "data")
|
dir = filepath.Join(os.TempDir(), "pomerium", "data")
|
||||||
}
|
}
|
||||||
log.Error().Msgf("user data directory not set, defaulting to %s", dir)
|
log.Debug().Msgf("user data directory not set, defaulting to %s", dir)
|
||||||
}
|
}
|
||||||
return dir
|
return dir
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,7 @@ func ShutdownContext(ctx context.Context) error {
|
||||||
if err := sys.tpm.ShutdownAll(context.Background()); err != nil {
|
if err := sys.tpm.ShutdownAll(context.Background()); err != nil {
|
||||||
errs = append(errs, fmt.Errorf("error shutting down tracer providers: %w", err))
|
errs = append(errs, fmt.Errorf("error shutting down tracer providers: %w", err))
|
||||||
}
|
}
|
||||||
if err := sys.exporterServer.Shutdown(context.Background()); err != nil {
|
if err := sys.exporterServer.Shutdown(context.Background()); err != nil && !errors.Is(err, ErrNoClient) {
|
||||||
errs = append(errs, fmt.Errorf("error shutting down trace exporter: %w", err))
|
errs = append(errs, fmt.Errorf("error shutting down trace exporter: %w", err))
|
||||||
}
|
}
|
||||||
return errors.Join(errs...)
|
return errors.Join(errs...)
|
||||||
|
|
Loading…
Add table
Reference in a new issue