We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 217a39c commit 338f79fCopy full SHA for 338f79f
internal/collector/otel_collector_plugin.go
@@ -71,7 +71,7 @@ func New(conf *config.Config) (*Collector, error) {
71
return nil, errors.New("nil collector config")
72
}
73
74
- if conf.Collector.Log != nil && conf.Collector.Log.Path != "" {
+ if conf.Collector.Log != nil && conf.Collector.Log.Path != "" && conf.Collector.Log.Path != "stdout" {
75
err := os.WriteFile(conf.Collector.Log.Path, []byte{}, filePermission)
76
if err != nil {
77
return nil, err
0 commit comments