Skip to content
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

node: Log the NetworkMagic immediately after the Protocol #921

Merged
merged 1 commit into from May 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions cardano-node/src/Cardano/Node/Run.hs
Expand Up @@ -58,6 +58,7 @@ import Cardano.Config.Logging (LoggingLayer (..), Severity (..))
import Cardano.Config.TraceConfig (traceConfigVerbosity)
import Cardano.Config.Types (NodeConfiguration (..), ViewMode (..))

import Ouroboros.Network.Magic (NetworkMagic (..))
import Ouroboros.Network.NodeToClient (LocalConnectionId)
import Ouroboros.Network.NodeToNode (RemoteConnectionId, AcceptedConnectionsLimit (..))
import Ouroboros.Consensus.Block (BlockProtocol)
Expand Down Expand Up @@ -307,6 +308,7 @@ handleSimpleNode p trace nodeTracers npm onKernel = do
vTr = appendName "version" tr
cTr = appendName "commit" tr
traceNamedObject rTr (meta, LogMessage (show (ncProtocol nc)))
traceNamedObject rTr (meta, LogMessage ("NetworkMagic " <> show (unNetworkMagic $ nodeNetworkMagic (Proxy @blk) cfg)))
erikd marked this conversation as resolved.
Show resolved Hide resolved
traceNamedObject vTr (meta, LogMessage . pack . showVersion $ version)
traceNamedObject cTr (meta, LogMessage gitRev)

Expand Down