Skip to content

Improve the log message when exception happen during Upload#2411

Merged
xgouchet merged 1 commit into
developfrom
xgouchet/improve_upload_exception_logs
Nov 22, 2024
Merged

Improve the log message when exception happen during Upload#2411
xgouchet merged 1 commit into
developfrom
xgouchet/improve_upload_exception_logs

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

Improve the log message when exception happen during Upload. Right now we only print the error message but not the error type which makes it harder to investigate when an unknown error appears

@xgouchet
xgouchet requested review from a team as code owners November 21, 2024 14:43

if (throwable != null) {
append(" (")
append(throwable.javaClass.name)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the downside is that it will be obfuscated in the release builds, so it will come as obfuscated to our telemetry as well. But I guess the major use-case is still debugging the issue with the debug build.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will only be obfuscated if it's a user or 3rd party lib exception. All the Java and Android framework excpetions will be in cleartext (the support case that sprung this was because of an ArrayIndexOutOfBounds issue)

@codecov-commenter

codecov-commenter commented Nov 21, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.94%. Comparing base (3c0a55a) to head (718e3b8).
Report is 14 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2411      +/-   ##
===========================================
+ Coverage    69.79%   69.94%   +0.15%     
===========================================
  Files          765      765              
  Lines        28369    28426      +57     
  Branches      4755     4767      +12     
===========================================
+ Hits         19800    19881      +81     
+ Misses        7257     7240      -17     
+ Partials      1312     1305       -7     
Files with missing lines Coverage Δ
.../android/core/internal/data/upload/UploadStatus.kt 98.84% <100.00%> (+0.03%) ⬆️

... and 30 files with indirect coverage changes

---- 🚨 Try these New Features:

@xgouchet
xgouchet merged commit ed1402d into develop Nov 22, 2024
@xgouchet
xgouchet deleted the xgouchet/improve_upload_exception_logs branch November 22, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants