Skip to content

Commit ad7217a

Browse files
committed
Improve logging
1 parent 3e15e86 commit ad7217a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/session/SessionManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import androidx.annotation.VisibleForTesting;
2121
import com.google.firebase.perf.application.AppStateMonitor;
2222
import com.google.firebase.perf.application.AppStateUpdateHandler;
23+
import com.google.firebase.perf.logging.AndroidLogger;
2324
import com.google.firebase.perf.session.gauges.GaugeManager;
2425
import com.google.firebase.perf.v1.ApplicationProcessState;
2526
import com.google.firebase.perf.v1.GaugeMetadata;
@@ -151,6 +152,8 @@ public void updatePerfSession(PerfSession perfSession) {
151152
return;
152153
}
153154

155+
AndroidLogger.getInstance().debug("Perf Session Changed: " + perfSession);
156+
154157
this.perfSession = perfSession;
155158

156159
synchronized (clients) {

firebase-perf/src/main/java/com/google/firebase/perf/session/SessionManagerKt.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class SessionManagerKt(val dataCollectionEnabled: Boolean): SessionSubscriber {
1212
get() = SessionSubscriber.Name.PERFORMANCE
1313

1414
override fun onSessionChanged(sessionDetails: SessionSubscriber.SessionDetails) {
15-
AndroidLogger.getInstance().debug("Session Changed: $sessionDetails")
15+
AndroidLogger.getInstance().debug("AQS Session Changed: $sessionDetails")
1616
val currentInternalSessionId = SessionManager.getInstance().perfSession().internalSessionId
1717

1818
// There can be situations where a new [PerfSession] was created, but an AQS wasn't

0 commit comments

Comments
 (0)