Skip to content

Commit 5fb1076

Browse files
committed
Add executable to tackle log visualization
Signed-off-by: Sasha Bogicevic <[email protected]>
1 parent 69e583c commit 5fb1076

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module Main where
2+
3+
import Hydra.Cardano.Api
4+
import Hydra.Prelude
5+
6+
import Hydra.Logging.Messages (HydraLog)
7+
import Hydra.Utils (readJsonFileThrow)
8+
9+
main :: IO ()
10+
main = do
11+
results <- readJsonFileThrow parseJSON "devnet/alice-logs.txt" :: IO (Either String (HydraLog Tx))
12+
pure ()

hydra-node/hydra-node.cabal

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,19 @@ executable hydra-node
247247

248248
ghc-options: -threaded -rtsopts -with-rtsopts=-N4
249249

250+
executable visualize-logs
251+
import: project-config
252+
hs-source-dirs: exe/visualize-logs
253+
main-is: Main.hs
254+
build-depends:
255+
, base
256+
, bytestring
257+
, hydra-cardano-api
258+
, hydra-node
259+
, hydra-prelude
260+
, unix
261+
262+
ghc-options: -threaded -rtsopts -with-rtsopts=-N4
250263
benchmark tx-cost
251264
import: project-config
252265
hs-source-dirs: bench/tx-cost

0 commit comments

Comments
 (0)