Dropped loglevel for AWS fingerprinter env reads

Certain environments use WARN for serious logging; however, it's very
possible to have machines without some of the fingerprinted keys
(public-ipv4 and public-hostname specifcally).  Setting log level to
INFO seems more consistent with this possibility.
This commit is contained in:
Charlie Voiselle 2017-11-15 18:20:59 +00:00
parent 2cee27ea31
commit 1197637251

View file

@ -108,7 +108,7 @@ func (f *EnvAWSFingerprint) Fingerprint(cfg *config.Config, node *structs.Node)
for k, unique := range keys {
res, err := client.Get(metadataURL + k)
if res.StatusCode != http.StatusOK {
f.logger.Printf("[WARN]: fingerprint.env_aws: Could not read value for attribute %q", k)
f.logger.Printf("[INFO]: fingerprint.env_aws: Could not read value for attribute %q", k)
continue
}
if err != nil {