@@ -646,7 +646,7 @@ public Void call() throws Exception {
646
646
}
647
647
648
648
/** Log a caught exception - write out Throwable as event section of protobuf */
649
- void writeNonFatalException (final Thread thread , final Throwable ex ) {
649
+ void writeNonFatalException (@ NonNull final Thread thread , @ NonNull final Throwable ex ) {
650
650
// Capture and close over the current time, so that we get the exact call time,
651
651
// rather than the time at which the task executes.
652
652
final Date time = new Date ();
@@ -676,7 +676,7 @@ void setCustomKey(String key, String value) {
676
676
if (context != null && CommonUtils .isAppDebuggable (context )) {
677
677
throw ex ;
678
678
} else {
679
- Logger .getLogger ().e ("Attempting to set custom attribute with null key, ignoring." , null );
679
+ Logger .getLogger ().e ("Attempting to set custom attribute with null key, ignoring." );
680
680
return ;
681
681
}
682
682
}
@@ -1169,7 +1169,7 @@ private void writeFatal(Thread thread, Throwable ex, long eventTime) {
1169
1169
final String currentSessionId = getCurrentSessionId ();
1170
1170
1171
1171
if (currentSessionId == null ) {
1172
- Logger .getLogger ().e ("Tried to write a fatal exception while no session was open." , null );
1172
+ Logger .getLogger ().e ("Tried to write a fatal exception while no session was open." );
1173
1173
return ;
1174
1174
}
1175
1175
@@ -1188,11 +1188,11 @@ private void writeFatal(Thread thread, Throwable ex, long eventTime) {
1188
1188
* Not synchronized/locked. Must be executed from the single thread executor service used by this
1189
1189
* class.
1190
1190
*/
1191
- private void doWriteNonFatal (Thread thread , Throwable ex , long eventTime ) {
1191
+ private void doWriteNonFatal (@ NonNull Thread thread , @ NonNull Throwable ex , long eventTime ) {
1192
1192
final String currentSessionId = getCurrentSessionId ();
1193
1193
1194
1194
if (currentSessionId == null ) {
1195
- Logger .getLogger ().e ("Tried to write a non-fatal exception while no session was open." , null );
1195
+ Logger .getLogger ().d ("Tried to write a non-fatal exception while no session was open." );
1196
1196
return ;
1197
1197
}
1198
1198
@@ -1601,7 +1601,7 @@ private void writeInitialPartsTo(CodedOutputStream cos, String sessionId) throws
1601
1601
listFilesMatching (new FileNameContainsFilter (sessionId + tag + SESSION_FILE_EXTENSION ));
1602
1602
1603
1603
if (sessionPartFiles .length == 0 ) {
1604
- Logger .getLogger ().e ("Can't find " + tag + " data for session ID " + sessionId , null );
1604
+ Logger .getLogger ().d ("Can't find " + tag + " data for session ID " + sessionId );
1605
1605
} else {
1606
1606
Logger .getLogger ().d ("Collecting " + tag + " data for session ID " + sessionId );
1607
1607
writeToCosFromFile (cos , sessionPartFiles [0 ]);
@@ -1630,7 +1630,7 @@ public void writeTo(CodedOutputStream cos) throws Exception {
1630
1630
*/
1631
1631
private static void writeToCosFromFile (CodedOutputStream cos , File file ) throws IOException {
1632
1632
if (!file .exists ()) {
1633
- Logger .getLogger ().e ("Tried to include a file that doesn't exist: " + file .getName (), null );
1633
+ Logger .getLogger ().e ("Tried to include a file that doesn't exist: " + file .getName ());
1634
1634
return ;
1635
1635
}
1636
1636
0 commit comments