diff --git a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt index cf19b3e675..f18aac3447 100644 --- a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt +++ b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayRecorder.kt @@ -8,7 +8,6 @@ import io.sentry.android.replay.Recorder import io.sentry.android.replay.ReplayIntegration import io.sentry.android.replay.ScreenshotRecorderConfig -@Suppress("TooGenericExceptionThrown") internal class SentryFlutterReplayRecorder( private val channel: MethodChannel, private val integration: ReplayIntegration, @@ -30,8 +29,8 @@ internal class SentryFlutterReplayRecorder( "frameRate" to config.frameRate, ), ) - } catch (e: Exception) { - Log.w("Sentry", "Failed to start replay recorder", e) + } catch (ignored: Exception) { + Log.w("Sentry", "Failed to start replay recorder", ignored) } } } @@ -40,7 +39,7 @@ internal class SentryFlutterReplayRecorder( Handler(Looper.getMainLooper()).post { try { channel.invokeMethod("ReplayRecorder.resume", null) - } catch (e: Exception) { + } catch (ignored: Exception) { Log.w("Sentry", "Failed to resume replay recorder", e) } } @@ -50,7 +49,7 @@ internal class SentryFlutterReplayRecorder( Handler(Looper.getMainLooper()).post { try { channel.invokeMethod("ReplayRecorder.pause", null) - } catch (e: Exception) { + } catch (ignored: Exception) { Log.w("Sentry", "Failed to pause replay recorder", e) } } @@ -60,7 +59,7 @@ internal class SentryFlutterReplayRecorder( Handler(Looper.getMainLooper()).post { try { channel.invokeMethod("ReplayRecorder.stop", null) - } catch (e: Exception) { + } catch (ignored: Exception) { Log.w("Sentry", "Failed to stop replay recorder", e) } }