Skip to content

Commit

Permalink
[log-format] remove redundant "[]" pair in the head and tail of log c…
Browse files Browse the repository at this point in the history
…ontent (#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 <[email protected]>
Co-authored-by: Nicolò Boschi <[email protected]>
  • Loading branch information
3 people authored Sep 6, 2022
1 parent 68e4317 commit fb8e801
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pulsar/log/wrapper_logrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {
Expand Down Expand Up @@ -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{}) {
Expand Down

0 comments on commit fb8e801

Please sign in to comment.