titan-x / titan

Messaging server with mobile and browser support.
MIT License
2 stars 3 forks source link

Better error chaining #96

Open soygul opened 8 years ago

soygul commented 8 years ago

We chain error messages coming from Neptulon to Titan client and going back through ctx.Next() so log prefixes for errors gets mixed. Especially titan/client/route_out.go suffers from that. We need a better approach than just prefixing error messages (time for structured logging?).

Ref: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=golang%20error%20chaining