mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
grpclogfaker should use or, not and, to check whether to log
This commit is contained in:
@@ -1380,19 +1380,19 @@ func (g *grpclogFaker) Fatalln(args ...interface{}) {
|
||||
}
|
||||
|
||||
func (g *grpclogFaker) Print(args ...interface{}) {
|
||||
if g.log || g.logger.IsTrace() {
|
||||
if g.log && g.logger.IsTrace() {
|
||||
g.logger.Trace(fmt.Sprint(args...))
|
||||
}
|
||||
}
|
||||
|
||||
func (g *grpclogFaker) Printf(format string, args ...interface{}) {
|
||||
if g.log || g.logger.IsTrace() {
|
||||
if g.log && g.logger.IsTrace() {
|
||||
g.logger.Trace(fmt.Sprintf(format, args...))
|
||||
}
|
||||
}
|
||||
|
||||
func (g *grpclogFaker) Println(args ...interface{}) {
|
||||
if g.log || g.logger.IsTrace() {
|
||||
if g.log && g.logger.IsTrace() {
|
||||
g.logger.Trace(fmt.Sprintln(args...))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user