From 99dfc84992df104ad23c8729f3be8a1f716937c8 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 9 Nov 2015 22:33:42 +0100 Subject: Add "-q" (quiet) flag --- cryptfs/log.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cryptfs/log.go') diff --git a/cryptfs/log.go b/cryptfs/log.go index 2183679..6173e63 100644 --- a/cryptfs/log.go +++ b/cryptfs/log.go @@ -43,6 +43,11 @@ func (l *logChannel) Md5sum(buf []byte) string { return md5sum(buf) } +// As defined by http://elinux.org/Debugging_by_printing#Log_Levels + +// Debug messages var Debug = logChannel{false} -var Notice = logChannel{true} +// Informational message e.g. startup information +var Info = logChannel{true} +// A warning, meaning nothing serious by itself but might indicate problems var Warn = logChannel{true} -- cgit v1.2.3