minor log changes

This commit is contained in:
tibbi 2016-06-16 16:16:45 +02:00
parent 145271bd7c
commit ecb2dca285
2 changed files with 4 additions and 3 deletions

View File

@ -32,9 +32,9 @@ public class PhotoProcessor extends AsyncTask<byte[], Void, Void> {
fos.close();
Utils.scanFile(photoPath, mContext);
} catch (FileNotFoundException e) {
Log.d(TAG, "onPictureTaken file not found: " + e.getMessage());
Log.d(TAG, "PhotoProcessor file not found: " + e.getMessage());
} catch (IOException e) {
Log.e(TAG, "onPictureTaken ioexception " + e.getMessage());
Log.e(TAG, "PhotoProcessor ioexception " + e.getMessage());
}
return null;

View File

@ -477,11 +477,11 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
camera.unlock();
try {
recorder.start();
isRecording = true;
} catch (Exception e) {
Utils.showToast(getContext(), R.string.video_setup_error);
Log.e(TAG, "toggleRecording " + e.getMessage());
}
isRecording = true;
}
return isRecording;
}
@ -494,6 +494,7 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
} catch (RuntimeException e) {
new File(curVideoPath).delete();
Utils.showToast(getContext(), R.string.video_saving_error);
Log.e(TAG, "stopRecording " + e.getMessage());
} finally {
recorder = null;
}