Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b595fabb1 |
+6
-4
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user