do not use prom logger before intialization
@@ -121,7 +121,6 @@ func (p *PrometheusOutput) SetEventProcessors(ps map[string]map[string]interface
func (p *PrometheusOutput) Init(ctx context.Context, cfg map[string]interface{}, opts ...outputs.Option) error {
err := outputs.DecodeConfig(cfg, p.Cfg)
if err != nil {
- p.logger.Printf("prometheus output config decode failed: %v", err)
return err
}
for _, opt := range opts {
