logException method

void logException(
  1. GQLException exception,
  2. StackTrace stackTrace
)

Implementation

void logException(GQLException exception, StackTrace stackTrace) {
  assert(() {
    log('🔥 EXCEPTION CAUGHT:');
    log('Type: ${exception.runtimeType}');
    log('Message: $exception');
    log('🔥 STACK TRACE:');
    log('$stackTrace');
    log('🔥 END DEBUG INFO');
    return true;
  }());
}