use the go string - not the c string in thelog msg

This commit is contained in:
dovholuknf
2021-01-29 19:58:15 -05:00
parent 228e093bfa
commit badffdd358
+2 -2
View File
@@ -491,9 +491,9 @@ func ZitiDump(zid *ZIdentity, path string) {
e := os.Remove(path)
if e != nil {
//probably did not exist
log.Debugf("Could not remove file at: %s", cpath)
log.Debugf("Could not remove file at: %s", path)
} else {
log.Debugf("Removed existing ziti_dump file at: %s", cpath)
log.Debugf("Removed existing ziti_dump file at: %s", path)
}
C.ziti_dump_go_wrapper(unsafe.Pointer(zid.czctx), cpath)
log.Infof("ziti_dump saved to: %s", path)