From 1a4bb2a0041c47025930531ebd81e4345a7c15a0 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Tue, 26 Apr 2016 22:00:51 -0500 Subject: [PATCH] Even more detailed comments on log levels --- logging.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/logging.go b/logging.go index 639df5f..f9d6e45 100644 --- a/logging.go +++ b/logging.go @@ -21,12 +21,15 @@ import ( const ( // Logs critical errors that can lead to data loss or panic + // also, only logs errors that would never be returned to + // a calling function. Such as errors within goroutines. LogError int = iota - // Logs very abnormal events + // Logs very abnormal events even if they're also returend as + // an error to the calling code. LogWarning - // Logs normal basic activity like connect/disconnects + // Logs normal non-error activity like connect/disconnects LogInformational // Logs detailed activity including all HTTP/Websocket packets.