Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
Use SevDebug for warnings that didn't contribute to a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cnr committed Feb 3, 2021
1 parent 8a4b77c commit 402baa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Control/Carrier/Diagnostics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ renderWarnings :: [SomeDiagnostic] -> Doc AnsiStyle
renderWarnings = align . vsep . map renderSomeDiagnostic

logResultWarnings :: Has Logger sig m => ResultBundle a -> m a
logResultWarnings ResultBundle {..} = logWarn (renderWarnings resultWarnings) $> resultValue
logResultWarnings ResultBundle {..} = logDebug (renderWarnings resultWarnings) $> resultValue

logErrorBundle :: Has Logger sig m => FailureBundle -> m ()
logErrorBundle = logError . renderFailureBundle
Expand Down

0 comments on commit 402baa4

Please sign in to comment.