Skip to content

Commit 338f79f

Browse files
committed
dont create file
1 parent 217a39c commit 338f79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/collector/otel_collector_plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func New(conf *config.Config) (*Collector, error) {
7171
return nil, errors.New("nil collector config")
7272
}
7373

74-
if conf.Collector.Log != nil && conf.Collector.Log.Path != "" {
74+
if conf.Collector.Log != nil && conf.Collector.Log.Path != "" && conf.Collector.Log.Path != "stdout" {
7575
err := os.WriteFile(conf.Collector.Log.Path, []byte{}, filePermission)
7676
if err != nil {
7777
return nil, err

0 commit comments

Comments
 (0)