You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2011-11-24 18:35:00Z WARN: ErrorSent(requestId=095b86af-d734-4ee5-99bf-9156f4eedc92): HttpCode=500, RestCode=InternalError, message=error determining account for 'admin':
InternalError: error determining account for 'admin'
at EventEmitter.<anonymous> (/Users/trentm/widget.js:292:33)
at EventEmitter.emit (events.js:64:17)
...
and I want to use res.sendError for all my error responses for the common response formatting:
{
"code": "ResourceNotFound",
"message": "no such login: 'adminasdf'"
}
However, I'd like to NOT bother logging the response and stack for some error responses, e.g. a simple 404 for some cases. Would you be amenable to a "noLog" boolean to skip logging on a one-off? If so, I can impl. it.
The text was updated successfully, but these errors were encountered:
I like the logging of error responses:
and I want to use
res.sendError
for all my error responses for the common response formatting:However, I'd like to NOT bother logging the response and stack for some error responses, e.g. a simple 404 for some cases. Would you be amenable to a "noLog" boolean to skip logging on a one-off? If so, I can impl. it.
The text was updated successfully, but these errors were encountered: