consider print more logs about connection status
Dentrax opened this issue · 3 comments
Expected Behaviour
INFO[2021/04/06 23:36:24] Connecting to proxy... url="wss://XXX.XX.XXX.XXX:XXX/connect"
INFO[2021/04/06 23:36:30] Connected to proxy!
Current Behaviour
INFO[2021/04/06 23:36:24] Connecting to proxy url="wss://XXX.XX.XXX.XXX:XXX/connect"
Possible Solution
I was just wondering if we could print a new log here just after the connection successfully established.
We can add 3 dots to end of the Connecting to proxy
log. i.e. Connecting to proxy...
Steps to Reproduce (for bugs)
inlets-pro http client --url "wss://XXX.XX.XXX.XXX:XXX" \
--token "$TOKEN" \
--upstream $UPSTREAM \
--license $LICENSE
- See the
Connecting to proxy
log
Context
This info message Connecting to proxy
a bit confusing. Currently, It makes it look like It keeps trying to connect to the upstream server. We thought that it is not working and stuck in there.
Are you a GitHub Sponsor for inlets?
- No
Your Environment
-
inlets-pro version:
Version: 0.8.3 - 205c311fde775723cf68b8116dacd7f428d243f8
-
Operating System and version (e.g. Linux, Windows, MacOS):
macOS 11.0.1
cc: @developer-guy
yeah, good point, this error message makes us confused, we couldn't understand if it is running properly.
Thanks for the suggestion.
INFO[2021/04/07 09:08:48] Connecting to proxy url="ws://localhost:8123/connect"
INFO[2021/04/07 09:08:48] Connection established.. OK.
This is what the message will look like going forward.