0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-23 04:50:22 +00:00

fix(health): change duplicate health template message logging level to 'info' ()

This commit is contained in:
Ilya Mashchenko 2022-05-11 15:39:33 +03:00 committed by GitHub
parent 7365a91a27
commit bc8ed60700
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ static inline int rrdcalctemplate_add_template_from_config(RRDHOST *host, RRDCAL
&& !strcmp(t->name, rt->name)
&& !strcmp(t->family_match?t->family_match:"*", rt->family_match?rt->family_match:"*")
)) {
error("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname);
info("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname);
return 0;
}
}
@ -127,7 +127,7 @@ static inline int rrdcalctemplate_add_template_from_config(RRDHOST *host, RRDCAL
&& !strcmp(t->name, rt->name)
&& !strcmp(t->family_match?t->family_match:"*", rt->family_match?rt->family_match:"*")
)) {
error("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname);
info("Health configuration template '%s' already exists for host '%s'.", rt->name, host->hostname);
return 0;
}
}