Skip to content

Commit

Permalink
move logger into for comp
Browse files Browse the repository at this point in the history
  • Loading branch information
jisantuc committed Apr 14, 2021
1 parent 7567978 commit e5c95e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ import scala.concurrent.ExecutionContext

import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
import io.chrisdavenport.log4cats

object Server extends IOApp.WithContext {

implicit def unsafeLogger[F[_]: Sync] = Slf4jLogger.getLogger[F]

def executionContextResource: Resource[SyncIO, ExecutionContext] =
Resource
.make(
Expand Down Expand Up @@ -86,6 +85,7 @@ $$$$
connectionEc,
Blocker.liftExecutionContext(transactionEc)
)
implicit0(logger: log4cats.Logger[IO]) = Slf4jLogger.getLogger[IO]
collectionItemEndpoints = new CollectionItemEndpoints[IO](
apiConfig.defaultLimit,
apiConfig.enableTransactions,
Expand Down

0 comments on commit e5c95e8

Please sign in to comment.