updating github.com/mistifyio/go-zfs to v2.1.1+incompatible

This commit is contained in:
Davanum Srinivas
2019-06-14 11:14:12 -04:00
parent a7c552be86
commit 68e3e2eb5c
6 changed files with 12 additions and 24 deletions

View File

@@ -92,20 +92,12 @@ type Logger interface {
Log(cmd []string)
}
type defaultLogger struct{}
func (*defaultLogger) Log(cmd []string) {
return
}
var logger Logger = &defaultLogger{}
var logger Logger
// SetLogger set a log handler to log all commands including arguments before
// they are executed
func SetLogger(l Logger) {
if l != nil {
logger = l
}
logger = l
}
// zfs is a helper function to wrap typical calls to zfs.