mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-23 16:07:52 +01:00
Log unexpected HTTP response fetching Hoogle DB
This commit is contained in:
parent
b56aaf33fc
commit
9420272b55
@ -137,6 +137,7 @@ newHoogleLocker env man bucketUrl = mkSingleRun hoogleLocker
|
|||||||
return Nothing
|
return Nothing
|
||||||
| otherwise -> do
|
| otherwise -> do
|
||||||
body <- liftIO $ brConsume $ responseBody res
|
body <- liftIO $ brConsume $ responseBody res
|
||||||
|
logWarn $ "Unexpected status: " <> displayShow status
|
||||||
mapM_ (logWarn . displayBytesUtf8) body
|
mapM_ (logWarn . displayBytesUtf8) body
|
||||||
return Nothing
|
return Nothing
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user