mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-10 07:38:34 +00:00
Fix Job.Result logging.
This commit is contained in:
parent
1c4833f3b4
commit
19b2658414
@ -175,6 +175,23 @@ public abstract class Job {
|
||||
return runtimeException;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull String toString() {
|
||||
switch (resultType) {
|
||||
case SUCCESS:
|
||||
case RETRY:
|
||||
return resultType.toString();
|
||||
case FAILURE:
|
||||
if (runtimeException == null) {
|
||||
return resultType.toString();
|
||||
} else {
|
||||
return "FATAL_FAILURE";
|
||||
}
|
||||
}
|
||||
|
||||
return "UNKNOWN?";
|
||||
}
|
||||
|
||||
private enum ResultType {
|
||||
SUCCESS, FAILURE, RETRY
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user