mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-27 03:11:57 +01:00
Upgrade some hoogle messages to warnings
This commit is contained in:
parent
143b9b01c5
commit
c1c7d14e15
@ -125,11 +125,11 @@ newHoogleLocker env man bucketUrl = mkSingleRun hoogleLocker
|
|||||||
sinkHandle h
|
sinkHandle h
|
||||||
return $ Just fp
|
return $ Just fp
|
||||||
| status == status404 -> do
|
| status == status404 -> do
|
||||||
logDebug $ "NotFound: " <> display (hoogleUrl name bucketUrl)
|
logWarn $ "NotFound: " <> display (hoogleUrl name bucketUrl)
|
||||||
return Nothing
|
return Nothing
|
||||||
| otherwise -> do
|
| otherwise -> do
|
||||||
body <- liftIO $ brConsume $ responseBody res
|
body <- liftIO $ brConsume $ responseBody res
|
||||||
mapM_ (logDebug . displayBytesUtf8) body
|
mapM_ (logWarn . displayBytesUtf8) body
|
||||||
return Nothing
|
return Nothing
|
||||||
|
|
||||||
getHackageDeprecations ::
|
getHackageDeprecations ::
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user