Skip to content

Commit 5c004c5

Browse files
committed
Remove logging
1 parent 4dda28b commit 5c004c5

File tree

3 files changed

+7
-31
lines changed

3 files changed

+7
-31
lines changed

firebase-common/src/main/java/com/google/firebase/datastore/DataStore.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.google.firebase.datastore
1818

1919
import android.content.Context
20-
import android.util.Log
2120
import androidx.datastore.core.DataStore
2221
import androidx.datastore.preferences.SharedPreferencesMigration
2322
import androidx.datastore.preferences.core.MutablePreferences
@@ -57,13 +56,6 @@ class DataStorage(val context: Context, val name: String) {
5756
produceMigrations = { listOf(SharedPreferencesMigration(it, name)) }
5857
)
5958

60-
init {
61-
Log.i(
62-
"DataStorage",
63-
"Datastore instance created for context $context (${context.packageName}) with name $name"
64-
)
65-
}
66-
6759
private val dataStore = context.dataStore
6860

6961
/**

firebase-common/src/main/java/com/google/firebase/heartbeatinfo/DefaultHeartBeatController.java

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import android.content.Context;
1818
import android.util.Base64;
1919
import android.util.Base64OutputStream;
20-
import android.util.Log;
2120
import androidx.annotation.NonNull;
2221
import androidx.annotation.VisibleForTesting;
2322
import androidx.core.os.UserManagerCompat;
@@ -132,11 +131,6 @@ private DefaultHeartBeatController(
132131
Executor executor,
133132
Provider<UserAgentPublisher> userAgentProvider,
134133
Context context) {
135-
Log.i(
136-
"DefHeartBeatController",
137-
String.format(
138-
"[DAYMON] Constructor called with context %s and testStorage %s",
139-
context.toString(), testStorage.toString()));
140134
storageProvider = testStorage;
141135
this.consumers = consumers;
142136
this.backgroundExecutor = executor;
@@ -146,7 +140,6 @@ private DefaultHeartBeatController(
146140

147141
public static @NonNull Component<DefaultHeartBeatController> component() {
148142
Qualified<Executor> backgroundExecutor = Qualified.qualified(Background.class, Executor.class);
149-
Log.i("DefHeartBeatController", "[DAYMON] component() called");
150143
return Component.builder(
151144
DefaultHeartBeatController.class, HeartBeatController.class, HeartBeatInfo.class)
152145
.add(Dependency.required(Context.class))
@@ -155,15 +148,13 @@ private DefaultHeartBeatController(
155148
.add(Dependency.requiredProvider(UserAgentPublisher.class))
156149
.add(Dependency.required(backgroundExecutor))
157150
.factory(
158-
c -> {
159-
Log.i("DefHeartBeatController", "[DAYMON] Factory called");
160-
return new DefaultHeartBeatController(
161-
c.get(Context.class),
162-
c.get(FirebaseApp.class).getPersistenceKey(),
163-
c.setOf(HeartBeatConsumer.class),
164-
c.getProvider(UserAgentPublisher.class),
165-
c.get(backgroundExecutor));
166-
})
151+
c ->
152+
new DefaultHeartBeatController(
153+
c.get(Context.class),
154+
c.get(FirebaseApp.class).getPersistenceKey(),
155+
c.setOf(HeartBeatConsumer.class),
156+
c.getProvider(UserAgentPublisher.class),
157+
c.get(backgroundExecutor)))
167158
.build();
168159
}
169160

firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import android.content.Context;
1818
import android.os.Build;
19-
import android.util.Log;
2019
import androidx.annotation.RestrictTo;
2120
import androidx.annotation.VisibleForTesting;
2221
import androidx.datastore.preferences.core.*;
@@ -62,19 +61,13 @@ class HeartBeatInfoStorage {
6261
private final DataStorage firebaseDataStore;
6362

6463
public HeartBeatInfoStorage(Context applicationContext, String persistenceKey) {
65-
Log.i(
66-
"DataStorage",
67-
String.format(
68-
"Creating a DataStorage instance for context %s (%s) with name %s",
69-
applicationContext, applicationContext.getPackageName(), persistenceKey));
7064
this.firebaseDataStore =
7165
new DataStorage(applicationContext, HEARTBEAT_PREFERENCES_NAME + persistenceKey);
7266
}
7367

7468
@VisibleForTesting
7569
@RestrictTo(RestrictTo.Scope.TESTS)
7670
HeartBeatInfoStorage(DataStorage dataStorage) {
77-
Log.i("DataStorage", "New test storage created");
7871
this.firebaseDataStore = dataStorage;
7972
}
8073

0 commit comments

Comments
 (0)