summaryrefslogtreecommitdiff
path: root/cryptfs/log.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-03 18:57:28 +0200
committerJakob Unterwurzacher2015-09-03 19:09:11 +0200
commitf8fddff7694b2cb9487fd4b5cbe9f97a136600b0 (patch)
treec592e59683165d9af1116e65fa16ffddff1bb7c5 /cryptfs/log.go
parent4e93fdf820695c6afb38d525b5cf1dcc64080305 (diff)
Split into FS and File
Diffstat (limited to 'cryptfs/log.go')
-rw-r--r--cryptfs/log.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/cryptfs/log.go b/cryptfs/log.go
new file mode 100644
index 0000000..947b1c3
--- /dev/null
+++ b/cryptfs/log.go
@@ -0,0 +1,19 @@
+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{true}
+var warn = logChannel{true}