summaryrefslogtreecommitdiff
path: root/bragi/thermoprint-server
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-12 15:13:13 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-12 15:13:13 +0200
commitaad26b59c48c3fcce94f7200f908f81503a1d3f9 (patch)
tree2c03e70cf50479e4f84a72ce4a8119310074612b /bragi/thermoprint-server
parentc799ec9fe235f37986fb04d8574645421fd51101 (diff)
downloadnixos-aad26b59c48c3fcce94f7200f908f81503a1d3f9.tar
nixos-aad26b59c48c3fcce94f7200f908f81503a1d3f9.tar.gz
nixos-aad26b59c48c3fcce94f7200f908f81503a1d3f9.tar.bz2
nixos-aad26b59c48c3fcce94f7200f908f81503a1d3f9.tar.xz
nixos-aad26b59c48c3fcce94f7200f908f81503a1d3f9.zip
thermoprint
Diffstat (limited to 'bragi/thermoprint-server')
-rw-r--r--bragi/thermoprint-server/thermoprint-server.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bragi/thermoprint-server/thermoprint-server.hs b/bragi/thermoprint-server/thermoprint-server.hs
index 5818ea4a..84d13ef1 100644
--- a/bragi/thermoprint-server/thermoprint-server.hs
+++ b/bragi/thermoprint-server/thermoprint-server.hs
@@ -20,7 +20,7 @@ import qualified Network.Wai.Handler.Warp as Warp
20type ServerM = ReaderT ConnectionPool (LoggingT IO) 20type ServerM = ReaderT ConnectionPool (LoggingT IO)
21 21
22main :: IO () 22main :: IO ()
23main = thermoprintServer True (Nat runDb) $ configure <$> def `withPrinters` printers' 23main = thermoprintServer True (NT runDb) $ configure <$> def `withPrinters` printers'
24 where 24 where
25 runDb :: ServerM a -> IO a 25 runDb :: ServerM a -> IO a
26 runDb = runStderrLoggingT . filterLogger (\_ lvl -> lvl >= LevelInfo) . withPostgresqlPool "" 5 . runReaderT 26 runDb = runStderrLoggingT . filterLogger (\_ lvl -> lvl >= LevelInfo) . withPostgresqlPool "" 5 . runReaderT