wolfstudy commented on a change in pull request #12: package logrus for project
URL: https://github.com/apache/pulsar-client-go/pull/12#discussion_r284958982
 
 

 ##########
 File path: perf/pulsar-perf-go.go
 ##########
 @@ -31,12 +30,6 @@ type ClientArgs struct {
 var clientArgs ClientArgs
 
 func main() {
-       log.SetFormatter(&log.TextFormatter{
-               FullTimestamp:   true,
-               TimestampFormat: "15:04:05.000",
-       })
-       log.SetLevel(log.InfoLevel)
-
 
 Review comment:
   Here I repackaged the `SetLevel` method, the level defaults to the `info` 
form, so when the log level has not changed, we don't have to reset it.
   
   If necessary, we can reset it by the following method:
   
   ```
   func SetLevel(level string) {
       log.SetLevel(stringToLogLevel(level))
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to