1 Commits
Author SHA1 Message Date
esilva 6b595fabb1 Fixed a call to the IBT exporter in the sessionInfo file 2025-01-07 21:54:41 +00:00
+6 -4
View File
@@ -321,9 +321,11 @@ func (i *IBT) readSessionInfo() error {
} }
// Write to the output file // Write to the output file
_, err = i.IBTExport.WriteAt(sessionInfoStringRaw[:], int64(i.Headers.SessionInfoOffset)) if i.IBTExport != nil {
if err != nil { err := i.exportIBT(sessionInfoStringRaw[:], int64(i.Headers.SessionInfoOffset))
return fmt.Errorf("Failed to export session info string: %v\n", err) if err != nil {
log.Printf("Failed to export offline telemetry data: %v", err)
}
} }
i.SessionInfo, err = parseSessionInfo(sessionInfoStringRaw, i.Headers.SessionInfoLength) i.SessionInfo, err = parseSessionInfo(sessionInfoStringRaw, i.Headers.SessionInfoLength)
@@ -335,7 +337,7 @@ func (i *IBT) readSessionInfo() error {
if i.YAMLExportPath != "" { if i.YAMLExportPath != "" {
err := i.exportYAML() err := i.exportYAML()
if err != nil { if err != nil {
log.Println("Failed to export YAML string: %v\n", err) log.Printf("Failed to export YAML string: %v\n", err)
} }
} }