From 0c95a01d5f506b8b18743a44bef1dad85d790dfb Mon Sep 17 00:00:00 2001 From: danicheg Date: Wed, 28 Feb 2024 10:23:14 +0300 Subject: [PATCH] Use named arguments in GetLoggerMacros --- .../typelevel/log4cats/slf4j/internal/GetLoggerMacros.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slf4j/src/main/scala-2/org/typelevel/log4cats/slf4j/internal/GetLoggerMacros.scala b/slf4j/src/main/scala-2/org/typelevel/log4cats/slf4j/internal/GetLoggerMacros.scala index 14856e24..22260f03 100644 --- a/slf4j/src/main/scala-2/org/typelevel/log4cats/slf4j/internal/GetLoggerMacros.scala +++ b/slf4j/src/main/scala-2/org/typelevel/log4cats/slf4j/internal/GetLoggerMacros.scala @@ -29,9 +29,9 @@ import scala.reflect.macros.blackbox * Sarah Gerweck */ private[slf4j] class GetLoggerMacros(val c: blackbox.Context) { - final def safeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, true) + final def safeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, delayed = true) - final def unsafeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, false) + final def unsafeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, delayed = false) private def getLoggerImpl[F](f: c.Expr[F], delayed: Boolean) = { val loggerName = SharedLoggerNameMacro.getLoggerNameImpl(c)