This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git

commit e4d728940fdfb22d0286b87c94cead7a47c4d689
Author: Christopher Collins <ccoll...@apache.org>
AuthorDate: Thu Aug 1 15:44:11 2019 -0700

    logcfg: Describe log level 15 as "DISABLED"
    
    The convention is to set a module's log level to LOG_LEVEL_MAX (15) to
    disable it.  Prior to this commit, newt described all log levels greater
    than 5 as "???".  Now, 15 is described as "DISABLED".
---
 newt/logcfg/logcfg.go | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/newt/logcfg/logcfg.go b/newt/logcfg/logcfg.go
index 8ccb2c0..28cca6a 100644
--- a/newt/logcfg/logcfg.go
+++ b/newt/logcfg/logcfg.go
@@ -74,11 +74,12 @@ type LCfg struct {
 // Maps numeric log levels to their string representations.  Used when
 // generating the C log macros.
 var logLevelNames = []string{
-       0: "DEBUG",
-       1: "INFO",
-       2: "WARN",
-       3: "ERROR",
-       4: "CRITICAL",
+       0:  "DEBUG",
+       1:  "INFO",
+       2:  "WARN",
+       3:  "ERROR",
+       4:  "CRITICAL",
+       15: "DISABLED",
 }
 
 func LogLevelString(level int) string {

Reply via email to