💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Log reqest id on error
Neeraj Gupta11f2cce2741b
diff --git a/mobile/lib/core/error-reporting/super_logging.dart b/mobile/lib/core/error-reporting/super_logging.dartindex 31cd3d9137..0513e9cb5b 100644--- a/mobile/lib/core/error-reporting/super_logging.dart+++ b/mobile/lib/core/error-reporting/super_logging.dart@@ -47,6 +47,14 @@ extension SuperLogRecord on LogRecord {var msg = "$header $message";if (error != null) {+ if (error is DioException) {+ final String? id = (error as DioException)+ .requestOptions+ .headers['x-request-id'] as String?;+ if (id != null) {+ msg += "\n⤷ id: $id";+ }+ }msg += "\n⤷ type: ${error.runtimeType}\n⤷ error: $error";}if (stackTrace != null) {