From 6aa2d3a4893264c1aa98be315be9264b5c56f384 Mon Sep 17 00:00:00 2001 From: Philippe Banwarth Date: Thu, 7 Jan 2021 17:19:44 +0100 Subject: [PATCH] Log errors when writing the image to a file (#960) Co-authored-by: Mattia Iavarone --- .../src/main/java/com/otaliastudios/cameraview/CameraUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/CameraUtils.java b/cameraview/src/main/java/com/otaliastudios/cameraview/CameraUtils.java index 17e06cf2..bbfdf5fb 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/CameraUtils.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/CameraUtils.java @@ -94,6 +94,7 @@ public class CameraUtils { stream.flush(); return file; } catch (IOException e) { + LOG.e("writeToFile:", "could not write file.", e); return null; } }