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:
parent
2cee27ea31
commit
1197637251
|
@ -108,7 +108,7 @@ func (f *EnvAWSFingerprint) Fingerprint(cfg *config.Config, node *structs.Node)
|
||||||
for k, unique := range keys {
|
for k, unique := range keys {
|
||||||
res, err := client.Get(metadataURL + k)
|
res, err := client.Get(metadataURL + k)
|
||||||
if res.StatusCode != http.StatusOK {
|
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
|
continue
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue