Skip to content

Commit

Permalink
remove debug to local machine for dot file
Browse files Browse the repository at this point in the history
  • Loading branch information
dekm committed Jan 24, 2024
1 parent b49dd2e commit d746d76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ test.log
debug_container.dot
debug_container.log
output.*
output_graph.txt
output_graph.txt
pax.log
23 changes: 2 additions & 21 deletions cmd/paxd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,7 @@ func NewRootCmd() *cobra.Command {
clientCtx client.Context
)

// if err := depinject.Inject(
// depinject.Configs(
// app.AppConfig(),
// depinject.Supply(
// log.NewNopLogger(),
// ),
// depinject.Provide(
// ProvideClientContext,
// ProvideKeyring,
// ),
// ),
// &txConfigOpts,
// &autoCliOpts,
// &moduleBasicManager,
// &clientCtx,
// ); err != nil {
// panic(err)
// }
if err := depinject.InjectDebug(
depinject.FileVisualizer("/home/evan/work/cosmos-daemon/output.dot"), // DebugOption
if err := depinject.Inject(
depinject.Configs(
app.AppConfig(),
depinject.Supply(
Expand All @@ -79,10 +60,10 @@ func NewRootCmd() *cobra.Command {
&autoCliOpts,
&moduleBasicManager,
&clientCtx,
// Other dependencies...
); err != nil {
panic(err)
}

// Since the IBC modules don't support dependency injection, we need to
// manually add the modules to the basic manager on the client side.
// This needs to be removed after IBC supports App Wiring.
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,8 @@ github.com/unigrid-project/cosmos-gridnode v0.0.11 h1:O+N2VvP4YFRLRUMT6+QpqdbW2b
github.com/unigrid-project/cosmos-gridnode v0.0.11/go.mod h1:gy7aTp5EBBmrn1IusMpsbUMnaS+KuyyjpFfhZ+31lQw=
github.com/unigrid-project/cosmos-ugdmint v0.0.82 h1:fK0v6M/3dVayXloEblEQxLoWPz3GLXnc5SmJyKHCkAY=
github.com/unigrid-project/cosmos-ugdmint v0.0.82/go.mod h1:7lWvASI4+5PA4cMSRsF6B9K5ptT5fxkQKGT9jElgbe0=
github.com/unigrid-project/cosmos-unigrid-hedgehog-vesting v0.0.57 h1:f3CNYz3aOXBkYM+p+sDoFyNEAte0MoEqmRYKr1Ys7jA=
github.com/unigrid-project/cosmos-unigrid-hedgehog-vesting v0.0.57/go.mod h1:p5/Va4MgvuIyrkOio+zYppNFNZk2I9evS9DnGNdMHcs=
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
github.com/vbatts/tar-split v0.11.5 h1:3bHCTIheBm1qFTcgh9oPu+nNBtX+XJIupG/vacinCts=
Expand Down

0 comments on commit d746d76

Please sign in to comment.