debugLogApiIssue function
Logs the error in debug mode.
Implementation
void debugLogApiIssue(Object error, {required String operation, StackTrace? stackTrace}) {
if (kDebugMode) {
debugPrint('[$operation] ${userFacingErrorMessage(error)}');
if (stackTrace != null) debugPrintStack(stackTrace: stackTrace, maxFrames: 8);
}
}