mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
config: log config source changes (#1959)
* config: log config source changes * use internal log import
This commit is contained in:
parent
664358dfad
commit
f396c2a0f7
11 changed files with 42 additions and 56 deletions
|
@ -84,7 +84,6 @@ func newPolicyEvaluator(opts *config.Options, store *evaluator.Store) (*evaluato
|
|||
|
||||
// OnConfigChange updates internal structures based on config.Options
|
||||
func (a *Authorize) OnConfigChange(cfg *config.Config) {
|
||||
log.Info().Str("checksum", fmt.Sprintf("%x", cfg.Options.Checksum())).Msg("authorize: updating options")
|
||||
a.currentOptions.Store(cfg.Options)
|
||||
if state, err := newAuthorizeStateFromConfig(cfg, a.store); err != nil {
|
||||
log.Error().Err(err).Msg("authorize: error updating state")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue