report method

void report(
  1. Object error,
  2. StackTrace stackTrace
)

Log the error. Dox calls it for every error that is not an IHttpException (those are normal answers like 404 or 422), and for errors outside a request, like a future that nobody awaited. The default prints the error and the stack with the logger.

Implementation

void report(Object error, StackTrace stackTrace) {
  Logger.warn(error);
  Logger.danger(stackTrace.toString());
}