Comment DEBUG printf

This commit is contained in:
yo 2023-07-09 13:47:57 +02:00
parent 2ddf51f887
commit 09b807c78e
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ func DestroyJails(args []string) {
fmt.Printf("Error getting root dataset: %s\n", err) fmt.Printf("Error getting root dataset: %s\n", err)
return return
} }
fmt.Printf("DEBUG: Prepare to zfs destroy %s\n", dsRootName) //fmt.Printf("DEBUG: Prepare to zfs destroy %s\n", dsRootName)
if err = zfsDestroy(dsRootName); err != nil { if err = zfsDestroy(dsRootName); err != nil {
fmt.Printf("Error deleting root dataset: %s\n", err) fmt.Printf("Error deleting root dataset: %s\n", err)
return return
@ -46,7 +46,7 @@ func DestroyJails(args []string) {
fmt.Printf("Error getting config dataset: %s\n", err) fmt.Printf("Error getting config dataset: %s\n", err)
return return
} }
fmt.Printf("DEBUG: Prepare to zfs destroy %s\n", dsConfName) //fmt.Printf("DEBUG: Prepare to zfs destroy %s\n", dsConfName)
if err = zfsDestroy(dsConfName); err != nil { if err = zfsDestroy(dsConfName); err != nil {
fmt.Printf("Error deleting config dataset: %s\n", err) fmt.Printf("Error deleting config dataset: %s\n", err)
return return

View File

@ -297,7 +297,7 @@ func StopJail(args []string) {
// This is working in this context, but value is not available in WriteConfigToDisk context :/ // This is working in this context, but value is not available in WriteConfigToDisk context :/
setStructFieldValue(cj, "Config.Release", cvers) setStructFieldValue(cj, "Config.Release", cvers)
fmt.Printf("DEBUG: release was set, now is : %s\n", cj.Config.Release) //fmt.Printf("DEBUG: release was set, now is : %s\n", cj.Config.Release)
// We need to get the real Config object, not a copy of it // We need to get the real Config object, not a copy of it
@ -465,7 +465,7 @@ func StopJail(args []string) {
} }
} }
fmt.Printf("DEBUG: release = %s\n", cj.Config.Release) //fmt.Printf("DEBUG: release = %s\n", cj.Config.Release)
WriteConfigToDisk(cj.Name, false, true) WriteConfigToDisk(cj.Name, false, true)
} }