Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 66b0771

Browse files
authored
Merge pull request #3603 from input-output-hk/adiemand/CBR-430/version_in_JSON
[CBR-430] add version and configuration key to JSON logs
2 parents aba83d4 + 09cd3a1 commit 66b0771

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

integration/TransactionSpecs.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ppShowT :: Show a => a -> Text
3131
ppShowT = fromString . ppShow
3232

3333
transactionSpecs :: WalletRef -> WalletClient IO -> Spec
34-
transactionSpecs wRef wc = beforeAll_ (setupLogging (defaultTestConfiguration Debug)) $
34+
transactionSpecs wRef wc = beforeAll_ (setupLogging "wallet-new_transactionSpecs" (defaultTestConfiguration Debug)) $
3535
describe "Transactions" $ do
3636

3737
randomTest "posted transactions appear in the index" 1 $ do

test/InternalAPISpec.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import Pos.Client.KeyStorage (getSecretKeysPlain)
2020
import Pos.Wallet.Web.Account (genSaveRootKey)
2121

2222
import Pos.Launcher (HasConfigurations)
23-
import Pos.Util.Log.LoggerConfig (defaultTestConfiguration)
24-
import Pos.Util.Wlog (Severity (Debug), setupLogging)
23+
import Pos.Util.Wlog (setupTestLogging)
2524
import Test.Pos.Util.QuickCheck.Property (assertProperty)
2625

2726
import Test.Hspec (Spec, beforeAll_, describe)
@@ -37,7 +36,7 @@ import Servant
3736
{-# ANN module ("HLint: ignore Reduce duplication" :: Text) #-}
3837

3938
spec :: Spec
40-
spec = beforeAll_ (setupLogging (defaultTestConfiguration Debug)) $
39+
spec = beforeAll_ setupTestLogging $
4140
withDefConfigurations $ \_ _ _ ->
4241
describe "development endpoint" $
4342
describe "secret-keys" $ modifyMaxSuccess (const 10) deleteAllSecretKeysSpec

0 commit comments

Comments
 (0)