Skip to content

Commit eeb83ab

Browse files
committed
Refactor
1 parent e4110bc commit eeb83ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/org/commcare/google/services/analytics/CCPerfMonitoring.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object CCPerfMonitoring {
4747
attrs?.forEach { (key, value) -> trace?.putAttribute(key, value) }
4848
trace?.stop()
4949
} catch (exception: Exception) {
50-
Logger.exception("Error stopping perf trace: ${trace?.name}", exception)
50+
Logger.exception("Error stopping perf trace: ${trace?.name?: "Unknown trace"}", exception)
5151
}
5252
}
5353

@@ -58,7 +58,7 @@ object CCPerfMonitoring {
5858
attrs[ATTR_FILE_TYPE] = FilenameUtils.getExtension(fileName)
5959
stopTracing(trace, attrs)
6060
} catch (e: java.lang.Exception) {
61-
Logger.exception("Failed to stop tracing: ${trace?.name}", e)
61+
Logger.exception("Failed to stop tracing: $TRACE_FILE_ENCRYPTION_TIME", e)
6262
}
6363
}
6464

0 commit comments

Comments
 (0)