@@ -17,14 +17,14 @@ module Cardano.Node.Tracing.Tracers.Startup
1717
1818import Cardano.Api (NetworkMagic (.. ), SlotNo (.. ))
1919import qualified Cardano.Api as Api
20- import Cardano.Network.OrphanInstances ()
2120
2221import qualified Cardano.Chain.Genesis as Gen
2322import Cardano.Git.Rev (gitRev )
2423import Cardano.Ledger.Shelley.API as SL
2524import Cardano.Logging
2625import Cardano.Network.NodeToClient (LocalAddress (.. ))
2726import Cardano.Network.NodeToNode (DiffusionMode (.. ))
27+ import Cardano.Network.OrphanInstances ()
2828import Cardano.Node.Configuration.POM (NodeConfiguration , ncProtocol )
2929import Cardano.Node.Configuration.Socket
3030import Cardano.Node.Protocol (SomeConsensusProtocol (.. ))
@@ -288,6 +288,9 @@ instance ( Show (BlockNodeToNodeVersion blk)
288288 forMachine _dtal (RpcConfigUpdateError err) =
289289 mconcat [ " kind" .= String " RpcConfigUpdateError"
290290 , " error" .= String (" Error while updating RPC configuration: " <> err) ]
291+ forMachine _dtal (RpcUnsupportedBlockType blockType) =
292+ mconcat [ " kind" .= String " RpcUnsupportedBlockType"
293+ , " blockType" .= String blockType ]
291294 forMachine _dtal RpcForceDisabled =
292295 mconcat [ " kind" .= String " RpcForceDisabled"
293296 , " error" .= String (ppStartupInfoTrace RpcForceDisabled )]
@@ -360,6 +363,8 @@ instance MetaTrace (StartupTrace blk) where
360363 Namespace [] [" RpcConfigUpdate" ]
361364 namespaceFor RpcConfigUpdateError {} =
362365 Namespace [] [" RpcConfigUpdateError" ]
366+ namespaceFor RpcUnsupportedBlockType {} =
367+ Namespace [] [" RpcUnsupportedBlockType" ]
363368 namespaceFor RpcForceDisabled =
364369 Namespace [] [" RpcForceDisabled" ]
365370 namespaceFor MovedTopLevelOption {} =
@@ -376,6 +381,7 @@ instance MetaTrace (StartupTrace blk) where
376381 severityFor (Namespace _ [" WarningDevelopmentNodeToClientVersions" ]) _ = Just Warning
377382 severityFor (Namespace _ [" RpcConfigUpdate" ]) _ = Just Notice
378383 severityFor (Namespace _ [" RpcConfigUpdateError" ]) _ = Just Error
384+ severityFor (Namespace _ [" RpcUnsupportedBlockType" ]) _ = Just Warning
379385 severityFor (Namespace _ [" RpcForceDisabled" ]) _ = Just Error
380386 severityFor (Namespace _ [" BlockForgingUpdateError" ]) _ = Just Error
381387 severityFor (Namespace _ [" BlockForgingBlockTypeMismatch" ]) _ = Just Error
@@ -407,6 +413,8 @@ instance MetaTrace (StartupTrace blk) where
407413 " "
408414 documentFor (Namespace [] [" RpcConfigUpdateError" ]) = Just
409415 " "
416+ documentFor (Namespace [] [" RpcUnsupportedBlockType" ]) = Just
417+ " "
410418 documentFor (Namespace [] [" RpcForceDisabled" ]) = Just
411419 " "
412420 documentFor (Namespace [] [" NetworkConfigUpdate" ]) = Just
@@ -480,6 +488,7 @@ instance MetaTrace (StartupTrace blk) where
480488 , Namespace [] [" BlockForgingBlockTypeMismatch" ]
481489 , Namespace [] [" RpcConfigUpdate" ]
482490 , Namespace [] [" RpcConfigUpdateError" ]
491+ , Namespace [] [" RpcUnsupportedBlockType" ]
483492 , Namespace [] [" RpcForceDisabled" ]
484493 , Namespace [] [" NetworkConfigUpdate" ]
485494 , Namespace [] [" NetworkConfigUpdateUnsupported" ]
@@ -605,6 +614,7 @@ ppStartupInfoTrace (LedgerPeerSnapshotLoaded slotNo) =
605614
606615ppStartupInfoTrace (RpcConfigUpdate config) = " Performing RPC configuration update: " <> config
607616ppStartupInfoTrace (RpcConfigUpdateError err) = " Error while updating RPC configuration: " <> err
617+ ppStartupInfoTrace (RpcUnsupportedBlockType blockType) = " RPC node kernel access is not supported for block type: " <> blockType
608618ppStartupInfoTrace RpcForceDisabled = " RPC endpoint has crashed and because of that it got disabled. Enable gRPC endpoint and send SIGHUP to the node to reenable."
609619
610620ppStartupInfoTrace NonP2PWarning = nonP2PWarningMessage
0 commit comments