@@ -85,6 +85,7 @@ data LogMessage =
8585 | InlineNotRendered Inline
8686 | BlockNotRendered Block
8787 | DocxParserWarning String
88+ | IgnoredIOError String
8889 | CouldNotFetchResource String String
8990 | CouldNotDetermineImageSize String String
9091 | CouldNotConvertImage String String
@@ -175,6 +176,8 @@ instance ToJSON LogMessage where
175176 ["contents" .= toJSON bl]
176177 DocxParserWarning s ->
177178 ["contents" .= Text.pack s]
179+ IgnoredIOError s ->
180+ ["contents" .= Text.pack s]
178181 CouldNotFetchResource fp s ->
179182 ["path" .= Text.pack fp,
180183 "message" .= Text.pack s]
@@ -265,6 +268,8 @@ showLogMessage msg =
265268 "Not rendering " ++ show bl
266269 DocxParserWarning s ->
267270 "Docx parser warning: " ++ s
271+ IgnoredIOError s ->
272+ "IO Error (ignored): " ++ s
268273 CouldNotFetchResource fp s ->
269274 "Could not fetch resource '" ++ fp ++ "'" ++
270275 if null s then "" else ": " ++ s
@@ -332,6 +337,7 @@ messageVerbosity msg =
332337 InlineNotRendered{} -> INFO
333338 BlockNotRendered{} -> INFO
334339 DocxParserWarning{} -> INFO
340+ IgnoredIOError{} -> WARNING
335341 CouldNotFetchResource{} -> WARNING
336342 CouldNotDetermineImageSize{} -> WARNING
337343 CouldNotConvertImage{} -> WARNING