I'd like to open up a small discussion on logging from this module - I often find it difficult in development to find stacktraces for errors that occur within my routes. They are never printed to the console, they are instead sent out the pipe to the client (except in production, because of a recent PR I submitted).
Of course, one can debug.enable('strong-remoting:rest-adapter') but there is a lot of noise there as well.
Rather than try to come up with a hard-and-fast rule for how these should be handled - since one size definitely does not fit all - how do you feel about an optional errorHandler function that would supersede the built-in error handler? We could pass it similarly to to the existing disableStackTrace option.
I'd like to open up a small discussion on logging from this module - I often find it difficult in development to find stacktraces for errors that occur within my routes. They are never printed to the console, they are instead sent out the pipe to the client (except in production, because of a recent PR I submitted).
Of course, one can
debug.enable('strong-remoting:rest-adapter')but there is a lot of noise there as well.Rather than try to come up with a hard-and-fast rule for how these should be handled - since one size definitely does not fit all - how do you feel about an optional
errorHandlerfunction that would supersede the built-in error handler? We could pass it similarly to to the existingdisableStackTraceoption.