Skip to content

Commit

Permalink
Fix logging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Jan 3, 2023
1 parent 369c281 commit b1fcb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/test/scala/io/aiven/guardian/kafka/TestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import java.time.OffsetDateTime
import java.time.temporal.ChronoUnit
import java.util.concurrent.CompletableFuture

object TestUtils {
object TestUtils extends LazyLogging {

// Taken from https://stackoverflow.com/a/56763206/1519631
implicit final class KafkaFutureToCompletableFuture[T](kafkaFuture: KafkaFuture[T]) {
Expand All @@ -34,7 +34,7 @@ object TestUtils {
}
}

implicit final class ScalaFutureExtensionMethods[T](future: Future[T]) extends LazyLogging {
implicit final class ScalaFutureExtensionMethods[T](future: Future[T]) {
def onCompleteLogError(f: () => Unit)(implicit executor: ExecutionContext): Unit =
future.onComplete { result =>
result match {
Expand Down

0 comments on commit b1fcb7a

Please sign in to comment.