Added comment explaining why EROR and DBUG are not typos

This commit is contained in:
Devin Nathan-Turner
2019-04-02 10:48:07 -04:00
parent a793607ab2
commit 9c13979b8b

View File

@@ -189,6 +189,8 @@ func (l *SimpleLogger) capitalizeFirstLetter(s string) string {
return string(runes)
}
// levelToString returns the logging level as a 4 character string. DEBUG and ERROR are shortened intentionally
// so that logs line up.
func (l *SimpleLogger) levelToString(level LogLevel) string {
switch level {
case Debug: