sys - add temp traces xtract

This commit is contained in:
Mahdi Abu Yasmine 2023-11-12 15:15:17 +01:00
parent bb3f2c0f58
commit 732697fc75

View File

@ -41,8 +41,11 @@ func (x *Xtract) setCompressedFile(dumpName string) {
}
func (x *Xtract) writeUncompressedData(out *bytes.Buffer) bool {
fmt.Printf("writeUncompressed %s\n", x.outFile)
fmt.Printf("writeUncompressedData :\n%s\n", string(out.Bytes()[0:50]))
err := os.WriteFile(x.outFile, out.Bytes(), 0644)
if err != nil {
fmt.Printf("err uncompressed : %+v\n", err)
panic(err)
}
return true