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

Commit f64f1a0

Browse files
iohk-bors[bot]aviethdisassembler
authored
Merge #76
76: rename block count to blockNum r=disassembler a=avieth More consistent with cardano-node Co-authored-by: Alexander Vieth <[email protected]> Co-authored-by: Samuel Leathers <[email protected]>
2 parents f801b03 + 5fb92ee commit f64f1a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cfg/logging.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ options:
4040
'#messagecounters.katip':
4141
subtrace: NoTrace
4242
mapBackends:
43-
'byron-proxy.db.block count':
43+
'cardano_byron_proxy.ChainDB.blockNum':
4444
- EKGViewBK

src/exec/Main.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ defineSeverity it = case it of
543543
main :: IO ()
544544
main = do
545545
bpo <- Opt.execParser cliParserInfo
546-
Logging.withLogging (bpoLoggerConfigPath bpo) "byron-proxy" $ \trace -> do
546+
Logging.withLogging (bpoLoggerConfigPath bpo) "cardano_byron_proxy" $ \trace -> do
547547
-- We always need the cardano-sl configuration, even if we're not
548548
-- connecting to a Byron peer, because that's where the blockchain
549549
-- configuration comes from: slots-per-epoch in particular.
@@ -616,10 +616,10 @@ main = do
616616
-- NB this is here because devops wanted an EKG metric on
617617
-- block count. FIXME should be done in a more sane way...
618618
let val = Monitoring.PureI (fromIntegral blockno)
619-
item = ("db", Monitoring.Info, Monitoring.LogValue "block count" val)
619+
item = ("ChainDB", Monitoring.Info, Monitoring.LogValue "blockNum" val)
620620
in doConvertedTrace item
621621
TraceAddBlockEvent (AddBlockValidation it@(InvalidBlock _ _)) ->
622-
let val = ("db", Monitoring.Error, Monitoring.LogMessage (fromString (show it)))
622+
let val = ("ChainDB", Monitoring.Error, Monitoring.LogMessage (fromString (show it)))
623623
in doConvertedTrace val
624624
_ -> pure ()
625625
indexTracer :: Tracer IO Index.TraceEvent

0 commit comments

Comments
 (0)