Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jutaro committed May 5, 2024
1 parent f5e6c54 commit 0394452
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cardano-node/src/Cardano/Node/Tracing/Tracers/ChainDB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ instance ( LogFormatting (Header blk)
"Added request to queue to reprocess blocks postponed by LoE."
forHuman ChainDB.PoppedReprocessLoEBlocksFromQueue =
"Poppped request from queue to reprocess blocks postponed by LoE."
forHuman (ChainDB.ChainSelectionLoEDebug {}) =
forHuman ChainDB.ChainSelectionLoEDebug {} =
"ChainDB LoE debug event"
forMachine dtal (ChainDB.IgnoreBlockOlderThanK pt) =
mconcat [ "kind" .= String "IgnoreBlockOlderThanK"
Expand Down
11 changes: 9 additions & 2 deletions cardano-node/src/Cardano/Node/Tracing/Tracers/NodeVersion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ module Cardano.Node.Tracing.Tracers.NodeVersion
)
where

import Cardano.Logging
import Data.Aeson (toJSON, (.=))
import Data.Text (Text, pack)

import Data.Version (Version (..), showVersion)
import System.Info (arch, compilerName, compilerVersion, os)


import Cardano.Git.Rev (gitRev)
import Cardano.Logging


import Paths_cardano_node (version)
import System.Info (arch, compilerName, compilerVersion, os)



-- | Node version information

data NodeVersionTrace = NodeVersionTrace
{ applicationName :: Text
, applicationVersion :: Version
Expand All @@ -34,6 +38,8 @@ data NodeVersionTrace = NodeVersionTrace
, gitRevision :: Text
} deriving (Eq, Show)

-- | Get the node version information

getNodeVersion :: NodeVersionTrace
getNodeVersion =
let applicationName = "cardano-node"
Expand All @@ -46,6 +52,7 @@ getNodeVersion =
gitRevision = $(gitRev)
in NodeVersionTrace {..}


instance MetaTrace NodeVersionTrace where
namespaceFor NodeVersionTrace {} =
Namespace [] ["NodeVersion"]
Expand Down

0 comments on commit 0394452

Please sign in to comment.