File tree Expand file tree Collapse file tree 7 files changed +89
-25
lines changed Expand file tree Collapse file tree 7 files changed +89
-25
lines changed Original file line number Diff line number Diff line change @@ -248,25 +248,6 @@ executable hydra-node
248
248
249
249
ghc-options : -threaded -rtsopts -with-rtsopts=-N4
250
250
251
- executable visualize-logs
252
- import : project-config
253
- hs-source-dirs : exe/visualize-logs
254
- main-is : Main.hs
255
- build-depends :
256
- , aeson
257
- , attoparsec
258
- , base
259
- , conduit
260
- , hydra-cardano-api
261
- , hydra-node
262
- , hydra-prelude
263
- , lens
264
- , lens-aeson
265
- , optparse-applicative
266
- , text
267
-
268
- ghc-options : -threaded -rtsopts -with-rtsopts=-N4
269
-
270
251
benchmark tx-cost
271
252
import : project-config
272
253
hs-source-dirs : bench/tx-cost
Original file line number Diff line number Diff line change 26
26
hydra-test-utils
27
27
hydra-tui
28
28
hydraw
29
+ visualize-logs
29
30
] ;
30
31
inherit ( pkgs ) weeder ;
31
32
haskellType = "haskell.nix" ;
Original file line number Diff line number Diff line change 102
102
"hydra-chain-observer"
103
103
paddedRevision ;
104
104
105
+ visualize-logs =
106
+ embedRevision
107
+ nativePkgs . visualize-logs . components . exes . visualize-logs
108
+ "visualize-logs"
109
+ paddedRevision ;
110
+
111
+ visualize-logs-static =
112
+ embedRevision
113
+ musl64Pkgs . visualize-logs . components . exes . visualize-logs
114
+ "visualize-logs"
115
+ paddedRevision ;
116
+
105
117
hydra-cluster = pkgs . writers . writeBashBin "hydra-cluster" ''
106
118
export PATH=$PATH:${ hydra-node } /bin
107
119
${ nativePkgs . hydra-cluster . components . exes . hydra-cluster } /bin/hydra-cluster "$@"
Original file line number Diff line number Diff line change 38
38
hydra-chain-observer . writeHieFiles = true ;
39
39
hydra-cluster . writeHieFiles = true ;
40
40
hydra-node . writeHieFiles = true ;
41
+ visualize-logs . writeHieFiles = true ;
41
42
hydra-plutus . writeHieFiles = true ;
42
43
hydra-plutus-extras . writeHieFiles = true ;
43
44
hydra-prelude . writeHieFiles = true ;
46
47
hydra-tui . writeHieFiles = true ;
47
48
hydraw . writeHieFiles = true ;
48
49
hydra-node . dontStrip = false ;
50
+ visualize-logs . dontStrip = false ;
49
51
hydra-tui . dontStrip = false ;
50
52
hydraw . dontStrip = false ;
51
53
} ;
72
74
hydra-node . ghcOptions = [ "-L${ pkgs . lib . getLib pkgs . static-snappy } /lib" ] ;
73
75
hydra-tui . ghcOptions = [ "-L${ pkgs . lib . getLib pkgs . static-snappy } /lib" ] ;
74
76
hydra-chain-observer . ghcOptions = [ "-L${ pkgs . lib . getLib pkgs . static-snappy } /lib" ] ;
77
+ visualize-logs . ghcOptions = [ "-L${ pkgs . lib . getLib pkgs . static-snappy } /lib" ] ;
75
78
hydraw . ghcOptions = [ "-L${ pkgs . lib . getLib pkgs . static-snappy } /lib" ] ;
76
79
} ;
77
80
}
Original file line number Diff line number Diff line change
1
+ -- | Parse hydra-node logs format more easy on the eyes. Parser works with regular json logs as well as journalctl format.
2
+ module Main where
3
+
4
+ import Hydra.Prelude
5
+ import Options.Applicative (execParser )
6
+ import VisualizeLogs
7
+
8
+ main :: IO ()
9
+ main = do
10
+ args <- execParser opts
11
+ visualize $ paths args
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE OverloadedRecordDot #-}
2
2
3
3
-- | Parse hydra-node logs format more easy on the eyes. Parser works with regular json logs as well as journalctl format.
4
- module Main where
4
+ module VisualizeLogs where
5
5
6
6
import Hydra.Cardano.Api (Tx )
7
7
import Hydra.Prelude hiding (encodeUtf8 , takeWhile )
@@ -102,11 +102,6 @@ opts =
102
102
<> header " Visualize hydra-node logs"
103
103
)
104
104
105
- main :: IO ()
106
- main = do
107
- args <- execParser opts
108
- visualize $ paths args
109
-
110
105
visualize :: [FilePath ] -> IO ()
111
106
visualize paths = do
112
107
decodedLines <-
Original file line number Diff line number Diff line change
1
+ cabal-version : 3.0
2
+ name : visualize-logs
3
+ version : 0.22.4
4
+ synopsis : Visualize Hydra node logs
5
+ author : IOG
6
+ copyright : 2022 IOG
7
+ license : Apache-2.0
8
+
9
+ common project-config
10
+ default-language : GHC2021
11
+ default-extensions :
12
+ DataKinds
13
+ DefaultSignatures
14
+ DeriveAnyClass
15
+ DeriveDataTypeable
16
+ DerivingStrategies
17
+ DuplicateRecordFields
18
+ FunctionalDependencies
19
+ GADTs
20
+ LambdaCase
21
+ MultiWayIf
22
+ NoImplicitPrelude
23
+ OverloadedStrings
24
+ PartialTypeSignatures
25
+ PatternSynonyms
26
+ TypeFamilies
27
+ ViewPatterns
28
+
29
+ ghc-options :
30
+ -Wall -Wcompat -Widentities -Wincomplete-record-updates
31
+ -Wincomplete-uni-patterns -Wredundant-constraints -Wunused-packages
32
+ -fprint-potential-instances -Wmissing-local-signatures
33
+
34
+ library
35
+ import : project-config
36
+ hs-source-dirs : src
37
+ exposed-modules : VisualizeLogs
38
+ build-depends :
39
+ , aeson
40
+ , attoparsec
41
+ , base
42
+ , conduit
43
+ , hydra-cardano-api
44
+ , hydra-node
45
+ , hydra-prelude
46
+ , lens
47
+ , lens-aeson
48
+ , optparse-applicative
49
+ , text
50
+
51
+ ghc-options : -haddock
52
+
53
+ executable visualize-logs
54
+ import : project-config
55
+ main-is : Main.hs
56
+ build-depends :
57
+ , hydra-prelude
58
+ , optparse-applicative
59
+ , visualize-logs
60
+
61
+ ghc-options : -threaded -rtsopts -with-rtsopts=-N4
You can’t perform that action at this time.
0 commit comments