Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add error trace #212

Merged
merged 2 commits into from
Apr 29, 2023
Merged

feat: add error trace #212

merged 2 commits into from
Apr 29, 2023

Conversation

de-sh
Copy link
Member

@de-sh de-sh commented Apr 26, 2023

Closes #

Changes

Log error message on disconnection

Why?

Trials Performed

Run uplink with json pointing to in-existent broker

2023-04-26T09:24:33.909442Z ERROR uplink::base::mqtt: disconnected I/O: Connection refused (os error 111): reconnects = 1   publishes = 0   pubacks = 0   pingreqs = 0   pingresps = 0  

  2023-04-26T09:24:36.911179Z ERROR uplink::base::mqtt: disconnected I/O: Connection refused (os error 111): reconnects = 2   publishes = 0   pubacks = 0   pingreqs = 0   pingresps = 0  

  2023-04-26T09:24:39.913571Z ERROR uplink::base::mqtt: disconnected I/O: Connection refused (os error 111): reconnects = 3   publishes = 0   pubacks = 0   pingreqs = 0   pingresps = 0 

Trying to connect to an HTTP server:

2023-04-26T09:25:46.812789Z ERROR uplink::base::mqtt: disconnected TLS: I/O: received corrupt message: reconnects = 1   publishes = 0   pubacks = 0   pingreqs = 0   pingresps = 0  

  2023-04-26T09:25:49.987146Z ERROR uplink::base::mqtt: disconnected TLS: I/O: received corrupt message: reconnects = 2   publishes = 0   pubacks = 0   pingreqs = 0   pingresps = 0 

@de-sh de-sh requested a review from tekjar April 26, 2023 09:26
@de-sh de-sh merged commit c9b83f1 into main Apr 29, 2023
@de-sh de-sh deleted the error-trace branch April 29, 2023 14:12
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.

1 participant