libgocryptfs/cryptfs/log.go
Jakob Unterwurzacher caaad7c8d7 Add pathfs frontend, part II
Fix issues in read and write paths.
Now passes selftest.
2015-09-08 21:35:06 +02:00

20 lines
262 B
Go

package cryptfs
import (
"fmt"
)
type logChannel struct {
enabled bool
}
func (l logChannel) Printf(format string, args ...interface{}) {
if l.enabled == true {
fmt.Printf(format, args...)
}
}
var Debug = logChannel{false}
var Warn = logChannel{true}