rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maixiao...@apache.org
Subject [rocketmq-client-go] branch master updated: fix: add missing log level fatal (#704)
Date Tue, 27 Jul 2021 05:30:59 GMT
This is an automated email from the ASF dual-hosted git repository.

maixiaohai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-go.git


The following commit(s) were added to refs/heads/master by this push:
     new bebe20b  fix: add missing log level fatal (#704)
bebe20b is described below

commit bebe20bfbda9d2383b94116d0b33f40402a82e5d
Author: 180909 <734461790@qq.com>
AuthorDate: Tue Jul 27 13:30:50 2021 +0800

    fix: add missing log level fatal (#704)
    
    * add missing log level
---
 rlog/log.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rlog/log.go b/rlog/log.go
index 3e3dfd3..1d850c3 100644
--- a/rlog/log.go
+++ b/rlog/log.go
@@ -57,6 +57,8 @@ func init() {
 		r.logger.SetLevel(logrus.WarnLevel)
 	case "error":
 		r.logger.SetLevel(logrus.ErrorLevel)
+	case "fatal":
+		r.logger.SetLevel(logrus.FatalLevel)
 	default:
 		r.logger.SetLevel(logrus.InfoLevel)
 	}
@@ -112,6 +114,8 @@ func (l *defaultLogger) Level(level string) {
 		l.logger.SetLevel(logrus.WarnLevel)
 	case "error":
 		l.logger.SetLevel(logrus.ErrorLevel)
+	case "fatal":
+		l.logger.SetLevel(logrus.FatalLevel)
 	default:
 		l.logger.SetLevel(logrus.InfoLevel)
 	}

Mime
View raw message