aboutsummaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-03 18:22:18 +0200
committerJakob Unterwurzacher2015-09-03 18:22:18 +0200
commit4e93fdf820695c6afb38d525b5cf1dcc64080305 (patch)
tree035c25c5816ccef1608d0d56a8256b62dc5131b9 /log.go
Port from go-fuse to bazil/fuse
Diffstat (limited to 'log.go')
-rw-r--r--log.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/log.go b/log.go
new file mode 100644
index 0000000..a6c65b8
--- /dev/null
+++ b/log.go
@@ -0,0 +1,19 @@
+package gocryptfs
+
+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{true}
+var warn = logChannel{true}