updating github.com/mistifyio/go-zfs to v2.1.1+incompatible
This commit is contained in:
12
vendor/github.com/mistifyio/go-zfs/zfs.go
generated
vendored
12
vendor/github.com/mistifyio/go-zfs/zfs.go
generated
vendored
@@ -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.
|
||||
|
Reference in New Issue
Block a user