Skip to content

Commit dcc33e6

Browse files
committed
Rename userInfo to eventKeys where applicable
1 parent bbfc5e8 commit dcc33e6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/CrashlyticsController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ void writeToLog(final long timestamp, final String msg) {
409409
void writeNonFatalException(
410410
@NonNull final Thread thread,
411411
@NonNull final Throwable ex,
412-
@NonNull Map<String, String> userInfo) {
412+
@NonNull Map<String, String> eventKeys) {
413413
// Capture and close over the current time, so that we get the exact call time,
414414
// rather than the time at which the task executes.
415415
final long timestampMillis = System.currentTimeMillis();
@@ -421,7 +421,8 @@ void writeNonFatalException(
421421
Logger.getLogger().w("Tried to write a non-fatal exception while no session was open.");
422422
return;
423423
}
424-
EventMetadata eventMetadata = new EventMetadata(currentSessionId, timestampSeconds, userInfo);
424+
EventMetadata eventMetadata =
425+
new EventMetadata(currentSessionId, timestampSeconds, eventKeys);
425426
reportingCoordinator.persistNonFatalEvent(ex, thread, eventMetadata);
426427
}
427428
}

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/CrashlyticsCore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ public static String getVersion() {
313313
* Throwable was thrown. The Throwable will always be processed on a background thread, so it is
314314
* safe to invoke this method from the main thread.
315315
*/
316-
public void logException(@NonNull Throwable throwable, @NonNull Map<String, String> userInfo) {
316+
public void logException(@NonNull Throwable throwable, @NonNull Map<String, String> eventKeys) {
317317
crashlyticsWorkers.common.submit(
318-
() -> controller.writeNonFatalException(Thread.currentThread(), throwable, userInfo));
318+
() -> controller.writeNonFatalException(Thread.currentThread(), throwable, eventKeys));
319319
}
320320

321321
/**

0 commit comments

Comments
 (0)