summaryrefslogtreecommitdiff
path: root/log.go
blob: a6c65b87a9abd8ff6d6467b0944d07d1ee17152d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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}