From d7b01e89942b66956b317d619265eb8b3cc57dc0 Mon Sep 17 00:00:00 2001 From: Dipankar Sarkar Date: Thu, 11 Dec 2014 23:48:11 +0530 Subject: [PATCH] Added log info for auth and digest file --- cadvisor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cadvisor.go b/cadvisor.go index a0c51276..7b88ce1b 100644 --- a/cadvisor.go +++ b/cadvisor.go @@ -96,6 +96,7 @@ func main() { // Setup the authenticator object if *httpAuthFile != "" { + glog.Infof("Using auth file %s", *httpAuthFile) secrets := auth.HtpasswdFileProvider(*httpAuthFile) authenticator := auth.NewBasicAuthenticator(*httpAuthRealm, secrets) http.HandleFunc(static.StaticResource, authenticator.Wrap(staticHandler)) @@ -104,7 +105,8 @@ func main() { } authenticated = true } - if *httpAuthFile=="" && *httpDigestFile != "" { + if *httpAuthFile == "" && *httpDigestFile != "" { + glog.Infof("Using digest file %s", *httpDigestFile) secrets := auth.HtdigestFileProvider(*httpDigestFile) authenticator := auth.NewDigestAuthenticator(*httpDigestRealm, secrets) http.HandleFunc(static.StaticResource, authenticator.Wrap(staticHandler))