Skip to content

Commit e4b3c5c

Browse files
author
David Motsonashvili
committed
remove session ID logging from Session Lifecycle Service
1 parent 50d8764 commit e4b3c5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/SessionLifecycleService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ internal class SessionLifecycleService : Service() {
128128
/** Generates a new session id and sends it everywhere it's needed */
129129
private fun newSession() {
130130
SessionGenerator.instance.generateNewSession()
131-
Log.d(TAG, "Generated new session ${SessionGenerator.instance.currentSession.sessionId}")
131+
Log.d(TAG, "Generated new session.")
132132
broadcastSession()
133133
SessionDatastore.instance.updateSessionId(SessionGenerator.instance.currentSession.sessionId)
134134
}
@@ -138,7 +138,7 @@ internal class SessionLifecycleService : Service() {
138138
* connected clients.
139139
*/
140140
private fun broadcastSession() {
141-
Log.d(TAG, "Broadcasting new session: ${SessionGenerator.instance.currentSession}")
141+
Log.d(TAG, "Broadcasting new session")
142142
SessionFirelogPublisher.instance.logSession(SessionGenerator.instance.currentSession)
143143
// Create a defensive copy because DeadObjectExceptions on send will modify boundClients
144144
val clientsToSend = ArrayList(boundClients)
@@ -151,7 +151,7 @@ internal class SessionLifecycleService : Service() {
151151
} else {
152152
// Send the value from the datastore before the first foregrounding it exists
153153
val storedSession = SessionDatastore.instance.getCurrentSessionId()
154-
Log.d(TAG, "App has not yet foregrounded. Using previously stored session: $storedSession")
154+
Log.d(TAG, "App has not yet foregrounded. Using previously stored session.")
155155
storedSession?.let { sendSessionToClient(client, it) }
156156
}
157157
}

0 commit comments

Comments
 (0)