Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 c5904a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/middleware/logging/logging.go
Expand Up @@ -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()
Expand Down

0 comments on commit c5904a9

Please sign in to comment.