summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Newberger <alann@google.com>2014-09-23 04:21:25 (GMT)
committerThe Android Automerger <android-build@google.com>2014-09-23 21:56:37 (GMT)
commit58a0a26e6dca97c86905a2dcbaee5374cb4fdb81 (patch)
treea505d33c90e0ef8e78cf98cd318bb9a10ebcd6f8
parent297276dad39869db0523f7629f143c2e609cb1f9 (diff)
downloadandroid_frameworks_ex-58a0a26e6dca97c86905a2dcbaee5374cb4fdb81.zip
android_frameworks_ex-58a0a26e6dca97c86905a2dcbaee5374cb4fdb81.tar.gz
android_frameworks_ex-58a0a26e6dca97c86905a2dcbaee5374cb4fdb81.tar.bz2
Add error log to API1 CameraAgent
Right when an error occurs, log it before doing further error handling. Bug: 17555612 Change-Id: I23c828f3ff0749643e490a431b71318004c6d692
-rw-r--r--camera2/portability/src/com/android/ex/camera2/portability/AndroidCameraAgentImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/camera2/portability/src/com/android/ex/camera2/portability/AndroidCameraAgentImpl.java b/camera2/portability/src/com/android/ex/camera2/portability/AndroidCameraAgentImpl.java
index 1aac446..992fcec 100644
--- a/camera2/portability/src/com/android/ex/camera2/portability/AndroidCameraAgentImpl.java
+++ b/camera2/portability/src/com/android/ex/camera2/portability/AndroidCameraAgentImpl.java
@@ -582,6 +582,7 @@ class AndroidCameraAgentImpl extends CameraAgent {
}
}
} catch (final RuntimeException e) {
+ Log.e(TAG, "Exception during camera operation " + msg.what, e);
if (msg.what != CameraActions.RELEASE && mCamera != null) {
try {
mCamera.release();