From faea804b88c4015b5bbf173f29533d269db7989a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 3 Jun 2020 23:22:09 +0300 Subject: [PATCH] app/vmauth: log when -auth.config is reloaded in SIGHUP --- app/vmauth/auth_config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/vmauth/auth_config.go b/app/vmauth/auth_config.go index af1b54846..c60f8b316 100644 --- a/app/vmauth/auth_config.go +++ b/app/vmauth/auth_config.go @@ -63,12 +63,14 @@ func authConfigReloader() { case <-stopCh: return case <-sighupCh: + logger.Infof("SIGHUP received; loading -auth.config=%q", *authConfigPath) m, err := readAuthConfig(*authConfigPath) if err != nil { - logger.Errorf("failed to load auth config; using the last successfully loaded config; error: %s", err) + logger.Errorf("failed to load -auth.config=%q; using the last successfully loaded config; error: %s", *authConfigPath, err) continue } authConfig.Store(m) + logger.Infof("Successfully reloaded -auth.config=%q", *authConfigPath) } } }