From 493e427ef132175c72a8db6af400629e76d51a97 Mon Sep 17 00:00:00 2001 From: manuelsaks <37194183+manuelsaks@users.noreply.github.com> Date: Fri, 28 Feb 2025 20:30:01 +0100 Subject: [PATCH] remove redundant log settings --- metricbeat/module/pgbouncer/lists/lists.go | 4 ---- metricbeat/module/pgbouncer/mem/mem.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/metricbeat/module/pgbouncer/lists/lists.go b/metricbeat/module/pgbouncer/lists/lists.go index b10962c012f8..3b038be67640 100644 --- a/metricbeat/module/pgbouncer/lists/lists.go +++ b/metricbeat/module/pgbouncer/lists/lists.go @@ -20,8 +20,6 @@ package lists import ( "context" "fmt" - "log" - "os" "github.com/elastic/beats/v7/metricbeat/mb" "github.com/elastic/beats/v7/metricbeat/module/pgbouncer" @@ -29,8 +27,6 @@ import ( // init registers the MetricSet with the central registry. func init() { - log.SetOutput(os.Stderr) - log.SetFlags(0) mb.Registry.MustAddMetricSet("pgbouncer", "lists", New, mb.WithHostParser(pgbouncer.ParseURL), mb.DefaultMetricSet(), diff --git a/metricbeat/module/pgbouncer/mem/mem.go b/metricbeat/module/pgbouncer/mem/mem.go index b950e7abbacc..c3604752355c 100644 --- a/metricbeat/module/pgbouncer/mem/mem.go +++ b/metricbeat/module/pgbouncer/mem/mem.go @@ -20,8 +20,6 @@ package mem import ( "context" "fmt" - "log" - "os" "github.com/elastic/beats/v7/metricbeat/mb" "github.com/elastic/beats/v7/metricbeat/module/pgbouncer" @@ -30,8 +28,6 @@ import ( // init registers the MetricSet with the central registry. func init() { - log.SetOutput(os.Stderr) - log.SetFlags(0) mb.Registry.MustAddMetricSet("pgbouncer", "mem", New, mb.WithHostParser(pgbouncer.ParseURL), mb.DefaultMetricSet(),