@@ -76,7 +76,6 @@ import qualified Data.Yaml as Yaml
7676import qualified Data.Text as T
7777import System.Console.GetOpt
7878import Text.Pandoc.Class (withMediaBag, PandocIO, getLog)
79−import Text.Pandoc.Logging (logMessagesToJSON)
8079import Paths_pandoc (getDataDir)
8180#ifndef _WINDOWS
8281import System.Posix.Terminal (queryTerminal)
@@ -351,7 +350,7 @@ convertWithOpts opts = do
351350 return (x, rs)
352351 case optLogFile opts of
353352 Nothing -> return ()
354− Just logfile -> B.writeFile logfile (logMessagesToJSON reports)
353+ Just logfile -> B.writeFile logfile (encodeLogMessages reports)
355354 let isWarning msg = messageVerbosity msg == WARNING
356355 when (optFailIfWarnings opts && any isWarning reports) $
357356 err 3 "Failing because there were warnings."