summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Hakyll/Preview/Server.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Hakyll/Preview/Server.hs b/lib/Hakyll/Preview/Server.hs
index a84016a..828a1d2 100644
--- a/lib/Hakyll/Preview/Server.hs
+++ b/lib/Hakyll/Preview/Server.hs
@@ -24,6 +24,7 @@ staticServer :: Logger -- ^ Logger
-> IO () -- ^ Blocks forever
staticServer logger directory host port = do
Logger.header logger $ "Listening on http://" ++ host ++ ":" ++ show port
+ Logger.flush logger -- ensure this line is logged before Warp errors
Warp.runSettings warpSettings $
Static.staticApp (Static.defaultFileServerSettings directory)
where