@@ -82,7 +82,7 @@ esTests :: TestTree
8282esTests = testGroup "elasticsearch scribe"
8383 [
8484 withSearch' (\c -> c { essIndexSharding = NoIndexSharding}) $ \setup -> testCase "it flushes to elasticsearch" $ withTestLogging setup $ \done -> do
85− $(logT) (ExampleCtx True) mempty InfoS "A test message"
85+ logT (ExampleCtx True) mempty InfoS "A test message"
8686 liftIO $ do
8787 void done
8888 logs <- getLogs
@@ -94,10 +94,10 @@ esTests = testGroup "elasticsearch scribe"
9494 let t1 = mkTime 2016 1 2 3 4 5
9595 fakeClock <- newTVarIO t1
9696 withTestLogging' (set logEnvTimer (readTVarIO fakeClock)) setup $ \done -> do
97− $(logT) (ExampleCtx True) mempty InfoS "today"
97+ logT (ExampleCtx True) mempty InfoS "today"
9898 let t2 = mkTime 2016 1 3 3 4 5
9999 liftIO (atomically (writeTVar fakeClock t2))
100− $(logT) (ExampleCtx True) mempty InfoS "tomorrow"
100+ logT (ExampleCtx True) mempty InfoS "tomorrow"
101101 liftIO $ do
102102 void done
103103 todayLogs <- getLogsByIndex (IndexName "katip-elasticsearch-tests-2016-1-2")
@@ -112,10 +112,10 @@ esTests = testGroup "elasticsearch scribe"
112112 let t1 = mkTime 2016 3 5 0 0 0 -- saturday, march 5th
113113 fakeClock <- newTVarIO t1
114114 withTestLogging' (set logEnvTimer (readTVarIO fakeClock)) setup $ \done -> do
115− $(logT) (ExampleCtx True) mempty InfoS "today"
115+ logT (ExampleCtx True) mempty InfoS "today"
116116 let t2 = mkTime 2016 3 6 0 0 0 -- sunday march 6th
117117 liftIO (atomically (writeTVar fakeClock t2))
118− $(logT) (ExampleCtx True) mempty InfoS "tomorrow"
118+ logT (ExampleCtx True) mempty InfoS "tomorrow"
119119 liftIO $ do
120120 void done
121121 todayLogs <- getLogsByIndex (IndexName "katip-elasticsearch-tests-2016-2-28") -- rounds back to previous sunday