Skip to content

Commit

Permalink
debug log to see messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pepov authored and csatib02 committed Dec 3, 2024
1 parent 7d370f1 commit cbe91ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type Config struct {
//
// Configuration example
// ```
// kubernetes:
// kubernetes_metadata:
// key: kubernetes
// include_pod_labels: true
// ```
Expand Down
2 changes: 2 additions & 0 deletions exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ func (f *fluentforwardExporter) convertLogToMap(lr plog.LogRecord, res plog.Reso
m[key] = k8sMetadata
}

f.settings.Logger.Debug(fmt.Sprintf("message %+v", m))

return m
}

Expand Down

0 comments on commit cbe91ca

Please sign in to comment.