From 864d6766ce317a26d68735bbcd6170b445b5b8a9 Mon Sep 17 00:00:00 2001 From: Saturn225 <101260782+Saturn225@users.noreply.github.com> Date: Sat, 19 Oct 2024 22:52:30 +0530 Subject: [PATCH] remove dev logs --- zio-http/shared/src/main/scala/zio/http/Routes.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zio-http/shared/src/main/scala/zio/http/Routes.scala b/zio-http/shared/src/main/scala/zio/http/Routes.scala index 2179bf9d8b..0a465c570d 100644 --- a/zio-http/shared/src/main/scala/zio/http/Routes.scala +++ b/zio-http/shared/src/main/scala/zio/http/Routes.scala @@ -252,14 +252,12 @@ final case class Routes[-Env, +Err](routes: Chunk[zio.http.Route[Env, Err]]) { s val chunk = tree.get(req.method, req.path) def allowedMethods = tree.getAllMethods(req.path) - println(s"[DEBUG] Chunk length for Method ${req.method} and Path ${req.path} = ${chunk.length}") - println(s"[DEBUG] Allowed methods for Path ${req.path} = ${allowedMethods.mkString(", ")}") req.method match { case Method.CUSTOM(_) => Handler.notImplemented case _ => if (chunk.isEmpty) { - if (allowedMethods.isEmpty || allowedMethods == Set(Method.OPTIONS)) { + if (allowedMethods.isEmpty) { // If no methods are allowed for the path, return 404 Not Found Handler.notFound } else {