> On 08 Jun 2015, at 16:51, Christophe Demarey <christophe.dema...@inria.fr> > wrote: > > > Le 8 juin 2015 à 16:33, Sven Van Caekenberghe a écrit : > >> Did you see Zn[JSON]RestServerDelegate>>#errorResponse:code:message: and >> follow its users ? > > yes. I saw #serverError:exception: that is using it (and also a bunch of > other useful methods) > >> Also, ZnRestServerDelegate>>#handleRequest: does transform any error in a >> proper REST server error. > > Strangely, I did not catch this one. Surprising because it is one of the two > users of #serverError:exception: > It is exactly what I search for.
Good. >> Does that help ? > > Yes, when you put into production, you just need to remove the call to > debugMode: true. I forgot this one and then, was surprised to see the > debugger popping. > > By the way, what is the best strategy to keep a trace of failures. I can see > you log failures as announcements. Do you have an object in the image > recording all announcements? No, but the beauty of logging as objects is that you can do what you want, just subscribe to ZnLogEvent announcer And filter/do what you want. > Thanks Sven.