diff options
Diffstat (limited to 'cryptfs/log.go')
-rw-r--r-- | cryptfs/log.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptfs/log.go b/cryptfs/log.go index 0884473..2183679 100644 --- a/cryptfs/log.go +++ b/cryptfs/log.go @@ -30,6 +30,10 @@ func (l *logChannel) Enable() { l.enabled = true } +func (l *logChannel) Disable() { + l.enabled = false +} + // Only actually calculate the md5sum if the log channel is enabled to save // CPU cycles func (l *logChannel) Md5sum(buf []byte) string { |