refactor(users/Profpatsch/whatcd-resolver): remove all debug

Change-Id: I6b3d26df05d2370ea86ecbacfe21508ebfe89fa6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11643
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Profpatsch 2024-05-11 20:18:03 +02:00 committed by clbot
parent dcd621820a
commit ba1eb4dc00

View file

@ -75,7 +75,6 @@ main =
htmlUi :: AppT IO ()
htmlUi = do
let debug = True
uniqueRunId <-
runTransaction $
querySingleRowWith
@ -231,7 +230,6 @@ htmlUi = do
]
runInIO $
runHandlers
debug
(\respond -> respond.html $ (mainHtml uniqueRunId))
handlers
req
@ -308,13 +306,12 @@ data HandlerResponses m = HandlerResponses
runHandlers ::
(MonadOtel m) =>
Bool ->
(HandlerResponses m -> m ResponseReceived) ->
(HandlerResponses m -> Map Text (m ResponseReceived)) ->
Wai.Request ->
(Wai.Response -> IO ResponseReceived) ->
m ResponseReceived
runHandlers debug defaultHandler handlers req respond = withRunInIO $ \runInIO -> do
runHandlers defaultHandler handlers req respond = withRunInIO $ \runInIO -> do
let hh route act =
Otel.inSpan'
[fmt|Route {route}|]