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 <[email protected]>
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)
}