Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
mlangc committed Jul 22, 2019
1 parent bc3c8c4 commit 4597539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/github/mlangc/slf4zio/api.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ object api {
aOrE <- zio.either
nanosAfter <- UIO(System.nanoTime())
elapsed = Duration.fromNanos(nanosAfter - nanosBefore)
_ <- if (elapsed >= threshold) logger.debugIO(msg(elapsed)) else UIO.unit
_ <- ZIO.when(elapsed >= threshold)(logger.debugIO(msg(elapsed)))
} yield aOrE

for {
Expand Down

0 comments on commit 4597539

Please sign in to comment.