-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beautify error published for failed send operation
Currently, we publish errors like: All attempts to connect to mydomain.adam:3333/api/v2/edgedevice/ping failed: [send via eth1: interface eth1: no DNS server available send via eth0 with src IP 172.22.12.10: Get \"https://mydomain.adam:3333/api/v2/edgedevice/ping\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)] It is hard to read, contains stutter, uses square brackets, separates errors with only a single space and all of that makes it difficult to read. Such error is not nice to display in the controller UI for example. Signed-off-by: Milan Lenco <milan@zededa.com>
- Loading branch information
1 parent
4846c84
commit c7cb0b8
Showing
1 changed file
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters