2015-09-03 18:57:28 +02:00
|
|
|
package cryptfs
|
2015-09-03 18:22:18 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
type logChannel struct {
|
|
|
|
enabled bool
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l logChannel) Printf(format string, args ...interface{}) {
|
|
|
|
if l.enabled == true {
|
|
|
|
fmt.Printf(format, args...)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-09-08 00:54:24 +02:00
|
|
|
var Debug = logChannel{true}
|
2015-09-05 20:36:26 +02:00
|
|
|
var Warn = logChannel{true}
|