-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logs to DrawActivity #2449
Add logs to DrawActivity #2449
Conversation
@@ -205,6 +207,8 @@ private void saveAndClose() { | |||
setResult(AppCompatActivity.RESULT_OK); | |||
} catch (FileNotFoundException e) { | |||
e.printStackTrace(); | |||
// We shouldn't have gotten a file not found exception since we're using ImageWidget.getTempFileForImageCapture. | |||
Logger.log(LogTypes.TYPE_ERROR_DESIGN, "Couldn't save signature at " + output.toString() + " because of" + e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can output
be null ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good
Another area to survey and add logging might be when |
I'm afraid I don't understand what you meant here. |
yes, I am worried because of the rotation if something funny is happening on the device causing the result to get lost. |
Jira: https://dimagi-dev.atlassian.net/browse/SAAS-11641
Some users have reported that they couldn't save the signature. More details on the ticket.
This PR will add logging to the DrawActivity to grab more information about the issue.