Skip to content

Commit

Permalink
CARRY: client: don't construct transaction log string when it's not n…
Browse files Browse the repository at this point in the history
…eeded

ovn-org/libovsdb#342

fmt.Sprintf() will be evaluated before the logging function is called,
which means that even if the logging level is less than V(4) we'll
still construct the whole string for the operation, just to discard
it. That can be pretty expensive.

Signed-off-by: Dan Williams <dcbw@redhat.com>
  • Loading branch information
dcbw committed Nov 14, 2022
1 parent d2b3afa commit 47f64b3
Showing 1 changed file with 4 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 47f64b3

Please sign in to comment.