Skip to content

Print friendlier messages when DAppNode initialization is slow#162

Merged
vdo merged 1 commit intov0.2.6from
init-messages
Jul 31, 2020
Merged

Print friendlier messages when DAppNode initialization is slow#162
vdo merged 1 commit intov0.2.6from
init-messages

Conversation

@dapplion
Copy link
Contributor

Changes on logging when calling dappnode_connect:

  1. The same error.message will only be printed once. The error message is tracked, and if it's repeated the script will just print a . (dot) without new line.
  2. When the DAPPMANAGER is polled for the domain and external IP; if the DAPPMANAGER is still initializing it will return an empty hostname. Catch that specific error named as NO_HOSTNAME_RETURNED_ERROR and just print Initializing DAppNode... instead of the previous error message:
retry #2 - VPN not ready, status: FETCHING_CONFIG_ERROR #2 - No hostname returned

@vdo vdo merged commit 713b27a into v0.2.6 Jul 31, 2020
@dapplion dapplion deleted the init-messages branch July 31, 2020 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants