Skip to content

Commit

Permalink
revert logger
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Nov 7, 2023
1 parent eb00d6c commit dc5b6be
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modules/backend/src/main/scala/smithy4s_codegen/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import java.io.File
import java.nio.file.Files
import java.nio.file.Paths
import scala.concurrent.duration._
import org.http4s.server.middleware.Logger

class SmithyCodeGenerationServiceImpl(generator: Smithy4s, validator: Validate)
extends SmithyCodeGenerationService[IO] {
Expand Down Expand Up @@ -100,13 +99,7 @@ object Main extends IOApp.Simple {
.default[IO]
.withPort(thePort)
.withHost(theHost)
.withHttpApp(
Logger.httpApp(
logHeaders = true,
logBody = true,
logAction = Some(IO.println(_: String))
)(routes.orNotFound)
)
.withHttpApp(routes.orNotFound)
.withShutdownTimeout(5.seconds)
.build
_ <- Resource.eval(IO.println(s"Server started on: $theHost:$thePort"))
Expand Down

0 comments on commit dc5b6be

Please sign in to comment.