-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update TraceForgeEvent
logging details
#537
Update TraceForgeEvent
logging details
#537
Conversation
We may want to remove the "txid" string from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be discussed;
a block could contain many transactions;
printing them all would have a performance impact
toObject _verb (TraceAdoptedBlock slotNo _blk _txs) = | ||
instance (HasTxId tx, ProtocolLedgerView blk, Condense (HeaderHash blk), Show (TxId tx)) | ||
=> ToObject (TraceForgeEvent blk tx) where | ||
toObject _verb (TraceAdoptedBlock slotNo blk txs) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably print the list of transaction ids only if _verb == 'MaximumVerbosity'
can potentially be huge!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CodiePP changes made
… txids in that block Update the following tracers to Error severity: TraceNoLedgerState TraceNoLedgerView TraceBlockFromFuture TraceDidntAdoptBlock TraceForgedInvalidBlock
8fbdf09
to
f11f46d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
bors r+ |
537: Update `TraceForgeEvent` logging details r=Jimbo4350 a=Jimbo4350 - Update tracer `TraceAdoptedBlock` to log the block hash and a list of txids in that block. Example output: `[cardano.node.Forge:Info:61] [2020-02-04 18:08:26.00 UTC] {"kind":"TraceAdoptedBlock","slot":6,"tx ids":"[txid: txid:6875a2f9]","block hash":"a6d8325832257989"}` - Update the following tracers to `Error` severity: `TraceNoLedgerState` `TraceNoLedgerView` `TraceBlockFromFuture` `TraceDidntAdoptBlock` `TraceForgedInvalidBlock` Relevant issue: #528 Co-authored-by: Jordan Millar <[email protected]>
Build succeeded |
TraceAdoptedBlock
to log the block hash and a list of txids in that block.Example output:
[cardano.node.Forge:Info:61] [2020-02-04 18:08:26.00 UTC] {"kind":"TraceAdoptedBlock","slot":6,"tx ids":"[txid: txid:6875a2f9]","block hash":"a6d8325832257989"}
Error
severity:TraceNoLedgerState
TraceNoLedgerView
TraceBlockFromFuture
TraceDidntAdoptBlock
TraceForgedInvalidBlock
Relevant issue: #528