Skip to content

'mix run' terminates without error #1

@gouthamvel

Description

@gouthamvel

Changes in app

-#     config :logger, :console,
-#       level: :info,
-#       format: "$date $time [$level] $metadata$message\n",
-#       metadata: [:user_id]
+     config :logger, :console,
+       level: :debug,
+       format: "$date $time [$level] {$metadata} $message\n",
+       metadata: [:user_id]


-# config :bitcoin, :network, :bitcoin
+ config :bitcoin, :network, :testnet


-# config :bitcoin, :node, []
+ config :bitcoin, :node, []

-# config :bitcoin, :node,
-#   modules: [storage_engine: Bitcoin.Node.Storage.Engine.Postgres]
+ config :bitcoin, :node,
+   modules: [storage_engine: Bitcoin.Node.Storage.Engine.Postgres]
:

I haven't changed anything thing else in app and ran mix run And this was the output
Logger set to debug

Generated bitcoin app
2017-09-07 18:58:25.925 [info] {} Starting Node subsystems
2017-09-07 18:58:25.926 [info] {} Node initialization
2017-09-07 18:58:25.926 [info] {} Starting Node subsystems
2017-09-07 18:58:25.969 [info] {} [CM] 0 peers connected
2017-09-07 18:58:25.970 [info] {} Beginning Peer Discovery Process
2017-09-07 18:58:25.970 [info] {} Starting Peer Discovery via DNS for seed testnetbitcoin.jonasschnelli.ch at domain testnet-seed.bitcoin.jonasschnelli.ch
2017-09-07 18:58:26.192 [info] {} Already up
2017-09-07 18:58:26.202 [debug] {} QUERY OK source="block" db=3.1ms
SELECT max(b0."height") FROM "block" AS b0 []

But if I run iex -S mix the app runs and logs on stdout (i.e, iex command line)

Any thoughts on whats going on? I tried setting up flag(:trap_exit) for addr, discovery, connection_manager, inventory but no callback to terminate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions