update debug

This commit is contained in:
shoopea 2021-11-14 18:14:57 +08:00
parent c93aa200b4
commit d2e5b34b64
2 changed files with 5 additions and 9 deletions

6
box.go
View File

@ -81,10 +81,6 @@ func (b *Box) ZFSIsLastSnapshot(src Snapshot) (is bool, err error) {
b.zfs.M.Lock()
defer b.zfs.M.Unlock()
if *debugFlag {
log.Printf("SSHConfig.isLastSnapshot : %s : Start %s", b.Name, string(src))
}
_, err = b.ZFSGetNextSnapshot(src)
if err != nil {
if err.Error() == "no snapshot" {
@ -99,7 +95,7 @@ func (b *Box) ZFSIsLastSnapshot(src Snapshot) (is bool, err error) {
func (b *Box) ZFSGetFirstSnapshot(path string) (first Snapshot, err error) {
if *debugFlag {
log.Printf("SSHConfig.getFirstSnapshot : %s : Start %s", b.Name, path)
log.Printf("Box.ZFSGetFirstSnapshot : %s : Start %s", b.Name, path)
}
err = b.SnapshotInitialize()

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "d895b93"
var buildstamp = "2021-11-14_10:09:45"
var commits = "23"
var version = "d895b93-b23 - 2021-11-14_10:09:45"
var githash = "c93aa20"
var buildstamp = "2021-11-14_10:14:42"
var commits = "25"
var version = "c93aa20-b25 - 2021-11-14_10:14:42"