From a574bd84116b5ac5e3b1664469144328c34ddf3c Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Wed, 13 Jul 2022 04:12:14 +0800 Subject: [PATCH] Improve logs --- .../nkming/nc_photos/plugin/ImageProcessorChannelHandler.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/android/src/main/kotlin/com/nkming/nc_photos/plugin/ImageProcessorChannelHandler.kt b/plugin/android/src/main/kotlin/com/nkming/nc_photos/plugin/ImageProcessorChannelHandler.kt index 6022e9ea..063bd891 100644 --- a/plugin/android/src/main/kotlin/com/nkming/nc_photos/plugin/ImageProcessorChannelHandler.kt +++ b/plugin/android/src/main/kotlin/com/nkming/nc_photos/plugin/ImageProcessorChannelHandler.kt @@ -30,6 +30,7 @@ class ImageProcessorChannelHandler(context: Context) : result ) } catch (e: Throwable) { + logE(TAG, "Uncaught exception", e) result.error("systemException", e.toString(), null) } } @@ -46,6 +47,7 @@ class ImageProcessorChannelHandler(context: Context) : result ) } catch (e: Throwable) { + logE(TAG, "Uncaught exception", e) result.error("systemException", e.toString(), null) } } @@ -61,6 +63,7 @@ class ImageProcessorChannelHandler(context: Context) : result ) } catch (e: Throwable) { + logE(TAG, "Uncaught exception", e) result.error("systemException", e.toString(), null) } } @@ -78,6 +81,7 @@ class ImageProcessorChannelHandler(context: Context) : result ) } catch (e: Throwable) { + logE(TAG, "Uncaught exception", e) result.error("systemException", e.toString(), null) } }