You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by zi...@apache.org on 2022/09/06 02:26:08 UTC

[pulsar-client-go] branch master updated: [log-format] remove redundant "[]" pair in the head and tail of log content (#831)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new fb8e801  [log-format] remove redundant "[]" pair in the head and tail of log content (#831)
fb8e801 is described below

commit fb8e80109141e4f024eda2a5d5c1aa25fec8f8de
Author: Qianjin Shen <49...@qq.com>
AuthorDate: Tue Sep 6 10:26:02 2022 +0800

    [log-format] remove redundant "[]" pair in the head and tail of log content (#831)
    
    * Upgrade beefsack/go-rate (#735)
    
    Fixes #725
    
    ### Motivation
    
    This PR will enable pulsar-client-go to be a compliant library. One of its dependencies was not compliant with OSS licensing requirements earlier, and this PR upgrades to the latest version of it, which has a MIT license.
    
    ### Modifications
    
    Ran the following commands
    ```bash
    go get github.com/beefsack/go-rate@latest
    go mod tidy
    ```
    
    ### Verifying this change
    
    - [x] Make sure that the change passes the CI checks.
    
    * Upgrade prometheus client to 1.11.1 (#738)
    
    * remove redundant "[]" pair in the head and tail of log content
    
    Co-authored-by: Shubham Sharma <sh...@microsoft.com>
    Co-authored-by: Nicolò Boschi <bo...@gmail.com>
---
 pulsar/log/wrapper_logrus.go | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/pulsar/log/wrapper_logrus.go b/pulsar/log/wrapper_logrus.go
index e1227aa..b8f94d0 100644
--- a/pulsar/log/wrapper_logrus.go
+++ b/pulsar/log/wrapper_logrus.go
@@ -60,19 +60,19 @@ func (l *logrusWrapper) WithError(err error) Entry {
 }
 
 func (l *logrusWrapper) Debug(args ...interface{}) {
-	l.l.Debug(args)
+	l.l.Debug(args...)
 }
 
 func (l *logrusWrapper) Info(args ...interface{}) {
-	l.l.Info(args)
+	l.l.Info(args...)
 }
 
 func (l *logrusWrapper) Warn(args ...interface{}) {
-	l.l.Warn(args)
+	l.l.Warn(args...)
 }
 
 func (l *logrusWrapper) Error(args ...interface{}) {
-	l.l.Error(args)
+	l.l.Error(args...)
 }
 
 func (l *logrusWrapper) Debugf(format string, args ...interface{}) {
@@ -108,19 +108,19 @@ func (l logrusEntry) WithField(name string, value interface{}) Entry {
 }
 
 func (l logrusEntry) Debug(args ...interface{}) {
-	l.e.Debug(args)
+	l.e.Debug(args...)
 }
 
 func (l logrusEntry) Info(args ...interface{}) {
-	l.e.Info(args)
+	l.e.Info(args...)
 }
 
 func (l logrusEntry) Warn(args ...interface{}) {
-	l.e.Warn(args)
+	l.e.Warn(args...)
 }
 
 func (l logrusEntry) Error(args ...interface{}) {
-	l.e.Error(args)
+	l.e.Error(args...)
 }
 
 func (l logrusEntry) Debugf(format string, args ...interface{}) {