ably-java icon indicating copy to clipboard operation
ably-java copied to clipboard

More verbose failure messages

Open mattheworiordan opened this issue 9 years ago • 2 comments

See log below for connection failures, we should try and include the reason.

I/System.out: (INFO): TokenAuth.authorise(): requesting new token 
09-29 19:02:34.179 16436-16517/com.rundosrun.groupchat I/System.out: (INFO): Auth.requestToken(): using token auth with client-side signing 
09-29 19:02:34.199 16436-16517/com.rundosrun.groupchat I/System.out: (INFO): Auth.getTokenRequest(): generated signed request 
09-29 19:02:34.261 16436-16517/com.rundosrun.groupchat D/NetworkSecurityConfig: No Network Security Config specified, using platform default 
09-29 19:02:42.374 16436-16517/com.rundosrun.groupchat I/System.out: (DEBUG): io.ably.lib.http.Http: Connection failed to host `rest.ably.io`. Searching for new host... 
09-29 19:02:42.375 16436-16517/com.rundosrun.groupchat I/System.out: (DEBUG): io.ably.lib.http.Http: Switched to `A.ably-realtime.com`. Also, more importantly, when we enable verbose logging we should include a log of all protocol messages so that we can debug issues that customers have by getting the complete log sent to us.

┆Issue is synchronized with this Jira Task by Unito

mattheworiordan avatar Sep 29 '16 18:09 mattheworiordan

I've got a local fix for logging all protocol messages. I'll push it with any fix needed for #170.

trenouf avatar Oct 05 '16 18:10 trenouf

Great, thanks

mattheworiordan avatar Oct 05 '16 20:10 mattheworiordan