mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-15 01:02:54 +02:00
cleanup logs (#5571)
This commit is contained in:
parent
62addcf2a5
commit
e78cfc0687
8 changed files with 31 additions and 48 deletions
|
@ -108,10 +108,6 @@ func NewFileOrEnvironmentSource(
|
|||
ctx context.Context,
|
||||
configFile, envoyVersion string,
|
||||
) (*FileOrEnvironmentSource, error) {
|
||||
ctx = log.WithContext(ctx, func(c zerolog.Context) zerolog.Context {
|
||||
return c.Str("config_file_source", configFile)
|
||||
})
|
||||
|
||||
options, err := newOptionsFromConfig(configFile)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -254,7 +250,7 @@ func (src *FileWatcherSource) onConfigChange(ctx context.Context, cfg *Config) {
|
|||
// store the config and trigger an update
|
||||
src.cfg = cfg.Clone()
|
||||
src.hash = getAllConfigFilePathsHash(src.cfg)
|
||||
log.Ctx(ctx).Info().Uint64("hash", src.hash).Msg("config/filewatchersource: underlying config change, triggering update")
|
||||
log.Ctx(ctx).Debug().Uint64("hash", src.hash).Msg("config/filewatchersource: underlying config change, triggering update")
|
||||
src.Trigger(ctx, src.cfg)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue