Skip to content

Commit 79975f0

Browse files
Check if logcat is enabled before generate dashboard URL (#3019)
1 parent 1b5c903 commit 79975f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/FirebasePerformance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public static FirebasePerformance getInstance() {
192192
gaugeManager.setApplicationContext(appContext);
193193

194194
mPerformanceCollectionForceEnabledState = configResolver.getIsPerformanceCollectionEnabled();
195-
if (isPerformanceCollectionEnabled()) {
195+
if (logger.isLogcatEnabled() && isPerformanceCollectionEnabled()) {
196196
logger.info(
197197
String.format(
198198
"Firebase Performance Monitoring is successfully initialized! In a minute, visit the Firebase console to view your data: %s",

0 commit comments

Comments
 (0)