Skip to content

Commit b8cbf88

Browse files
authored
Merge pull request #164 from nissessenap/filter_log_level
Set Filtering Zone to debug
2 parents 82d93a5 + 2c902f2 commit b8cbf88

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ import (
3131
// cfgMetricsDenylist = ""
3232
// )
3333

34-
var (
35-
cloudflareAPI *cloudflare.API
36-
)
34+
var cloudflareAPI *cloudflare.API
3735

3836
func getTargetZones() []string {
3937
var zoneIDs []string
@@ -64,7 +62,7 @@ func filterZones(all []cloudflare.Zone, target []string) []cloudflare.Zone {
6462
for _, z := range all {
6563
if tz == z.ID {
6664
filtered = append(filtered, z)
67-
log.Info("Filtering zone: ", z.ID, " ", z.Name)
65+
log.Debug("Filtering zone: ", z.ID, " ", z.Name)
6866
}
6967
}
7068
}
@@ -217,7 +215,7 @@ func runExporter() {
217215
}
218216

219217
func main() {
220-
var cmd = &cobra.Command{
218+
cmd := &cobra.Command{
221219
Use: "cloudflare_exporter",
222220
Short: "Prometheus exporter exposing Cloudflare Analytics dashboard data on a per-zone basis, as well as Worker metrics",
223221
Run: func(_ *cobra.Command, _ []string) {

0 commit comments

Comments
 (0)