Add TemplateWarning log message type [API change]
This is a general warning to use for messages about templates.
This commit is contained in:
parent
415f445fc1
commit
88d82203a1
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,7 @@ data LogMessage =
|
||||||
| InlineNotRendered Inline
|
| InlineNotRendered Inline
|
||||||
| BlockNotRendered Block
|
| BlockNotRendered Block
|
||||||
| DocxParserWarning Text
|
| DocxParserWarning Text
|
||||||
|
| TemplateWarning Text
|
||||||
| IgnoredIOError Text
|
| IgnoredIOError Text
|
||||||
| CouldNotFetchResource Text Text
|
| CouldNotFetchResource Text Text
|
||||||
| CouldNotDetermineImageSize Text Text
|
| CouldNotDetermineImageSize Text Text
|
||||||
|
@ -174,6 +175,8 @@ instance ToJSON LogMessage where
|
||||||
["contents" .= toJSON bl]
|
["contents" .= toJSON bl]
|
||||||
DocxParserWarning s ->
|
DocxParserWarning s ->
|
||||||
["contents" .= s]
|
["contents" .= s]
|
||||||
|
TemplateWarning s ->
|
||||||
|
["contents" .= s]
|
||||||
IgnoredIOError s ->
|
IgnoredIOError s ->
|
||||||
["contents" .= s]
|
["contents" .= s]
|
||||||
CouldNotFetchResource fp s ->
|
CouldNotFetchResource fp s ->
|
||||||
|
@ -291,6 +294,8 @@ showLogMessage msg =
|
||||||
"Not rendering " <> Text.pack (show bl)
|
"Not rendering " <> Text.pack (show bl)
|
||||||
DocxParserWarning s ->
|
DocxParserWarning s ->
|
||||||
"Docx parser warning: " <> s
|
"Docx parser warning: " <> s
|
||||||
|
TemplateWarning s ->
|
||||||
|
"Pptx parser warning: " <> s
|
||||||
IgnoredIOError s ->
|
IgnoredIOError s ->
|
||||||
"IO Error (ignored): " <> s
|
"IO Error (ignored): " <> s
|
||||||
CouldNotFetchResource fp s ->
|
CouldNotFetchResource fp s ->
|
||||||
|
@ -386,6 +391,7 @@ messageVerbosity msg =
|
||||||
InlineNotRendered{} -> INFO
|
InlineNotRendered{} -> INFO
|
||||||
BlockNotRendered{} -> INFO
|
BlockNotRendered{} -> INFO
|
||||||
DocxParserWarning{} -> INFO
|
DocxParserWarning{} -> INFO
|
||||||
|
TemplateWarning{} -> WARNING
|
||||||
IgnoredIOError{} -> WARNING
|
IgnoredIOError{} -> WARNING
|
||||||
CouldNotFetchResource{} -> WARNING
|
CouldNotFetchResource{} -> WARNING
|
||||||
CouldNotDetermineImageSize{} -> WARNING
|
CouldNotDetermineImageSize{} -> WARNING
|
||||||
|
|
Loading…
Add table
Reference in a new issue