Skip to content

Commit

Permalink
Add support for JSON logging to cardano testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jun 27, 2022
1 parent cf4b72f commit 1f061a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cardano-testnet/src/Testnet/Cardano.hs
Expand Up @@ -249,6 +249,13 @@ testnet testnetOptions H.Conf {..} = do
. HM.insert "TestEnableDevelopmentHardForkEras" (J.toJSON @Bool True)
. HM.insert "TestEnableDevelopmentNetworkProtocols" (J.toJSON @Bool True)
. HM.insert "EnableP2P" (J.toJSON @Bool (enableP2P testnetOptions))
. flip HM.alter "setupScribes" do
fmap do
J.rewriteArrayElements do
J.rewriteObject do
HM.insert "scFormat" case nodeLoggingFormat testnetOptions of
NodeLoggingFormatAsJson -> "ScJson"
NodeLoggingFormatAsText -> "ScText"
. forkOptions

forM_ allNodeNames $ \node -> do
Expand Down

0 comments on commit 1f061a2

Please sign in to comment.