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 23:09:28 +02:00
|
|
|
var Debug = logChannel{false}
|
2015-09-05 20:36:26 +02:00
|
|
|
var Warn = logChannel{true}
|