Permalink
Browse files

add logger

  • Loading branch information...
1 parent 7c6584c commit 8f73aadb0f63b03213e1828ae271ced0e4b5d47e @nfjinjing committed Nov 22, 2009
Showing with 3 additions and 1 deletion.
  1. +1 −1 Nemesis
  2. +2 −0 src/Test/LoliPaste.hs
View
@@ -54,6 +54,6 @@ nemesis = do
where
ghci n x = task n - sh - "ghci -isrc src/" ++ x ++ ".hs"
bin n x = task n - do
- sh - "ghc --make -Wall -isrc src/" ++ x ++ ".hs -o .bin/" ++ n
+ sh - "ghc --make -Wall -O1 -threaded -isrc src/" ++ x ++ ".hs -o .bin/" ++ n
sh - "echo done.."
sh - ".bin/" ++ n
View
@@ -19,6 +19,7 @@ import Data.Maybe
import Hack.Contrib.Constants
import Hack.Contrib.Middleware.ContentType
import Hack.Contrib.Middleware.Lambda
+import Hack.Contrib.Middleware.SimpleAccessLogger
import Hack.Contrib.Request hiding (content_type, port)
import Hack.Contrib.Response
import Hack.Contrib.Utils (unescape_uri, escape_html)
@@ -115,6 +116,7 @@ main = runWithConfig def {port = 5000} - loli - do
middleware lambda
middleware - content_type _TextHtml
+ middleware - simple_access_logger Nothing
views "views/loli_paste"
layout "layout.html"

0 comments on commit 8f73aad

Please sign in to comment.