Skip to content
Permalink
Browse files
fix: reset padding first on PadLog
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Sep 28, 2022
1 parent e070258 commit c5904a9004fca1e438168ca7334a0deefab536ff
Showing 1 changed file with 1 addition and 0 deletions.
@@ -35,6 +35,7 @@ func Log(title string, next middleware.Action) middleware.Action {
func PadLog(title string, next middleware.Action) middleware.Action {
return func(ctx *context.Context) error {
defer log.ResetPadding()
log.ResetPadding()
log.IncreasePadding()
log.Infof(bold.Render(title))
log.IncreasePadding()

0 comments on commit c5904a9

Please sign in to comment.