Skip to content

Commit 15c5af9

Browse files
committed
brig-index: Log JSONs
1 parent 920fefa commit 15c5af9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

services/brig/brig.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ executable brig-index
341341
build-depends:
342342
, base
343343
, brig
344+
, extended
344345
, imports
345346
, optparse-applicative
346347
, tinylog

services/brig/index/src/Main.hs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import Imports
2626
import Options.Applicative
2727
import System.Exit
2828
import System.Logger.Class qualified as Log
29+
import System.Logger.Extended
2930

3031
main :: IO ()
3132
main = do
@@ -39,9 +40,4 @@ main = do
3940
header "brig-index"
4041
<> progDesc "Brig Search Index Utilities"
4142
<> fullDesc
42-
initLogger =
43-
Log.new -- TODO: use mkLogger'?
44-
. Log.setOutput Log.StdOut
45-
. Log.setFormat Nothing
46-
. Log.setBufSize 0
47-
$ Log.defSettings
43+
initLogger = mkLogger Debug Nothing (Just $ Last JSON)

0 commit comments

Comments
 (0)