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