From c8138351c9737e3286a128c78f39e4f8a23e7bc9 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 29 Jan 2018 20:46:01 -0800 Subject: Keep code base tidy --- logger/logger.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'logger') diff --git a/logger/logger.go b/logger/logger.go index 01d041c..a7ef3c1 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -12,24 +12,23 @@ import ( var requestedLevel = InfoLevel -// LogLevel type +// LogLevel type. type LogLevel uint32 const ( - // FatalLevel should be used in fatal situations, the app will exit + // FatalLevel should be used in fatal situations, the app will exit. FatalLevel LogLevel = iota - // ErrorLevel should be used when someone should really look at the error + // ErrorLevel should be used when someone should really look at the error. ErrorLevel - // InfoLevel should be used during normal operations + // InfoLevel should be used during normal operations. InfoLevel - // DebugLevel should be used only during development + // DebugLevel should be used only during development. DebugLevel ) -// Convert the Level to a string. func (level LogLevel) String() string { switch level { case DebugLevel: @@ -40,9 +39,9 @@ func (level LogLevel) String() string { return "ERROR" case FatalLevel: return "FATAL" + default: + return "UNKNOWN" } - - return "UNKNOWN" } // EnableDebug increases logging, more verbose (debug) -- cgit v1.2.3