Skip to content

Commit cb5dcfa

Browse files
RUM-12046: Fix synthetic ids logging in RumViewScope
1 parent aeffdcc commit cb5dcfa

File tree

1 file changed

+6
-5
lines changed
  • features/dd-sdk-android-rum/src/main/kotlin/com/datadog/android/rum/internal/domain/scope

1 file changed

+6
-5
lines changed

features/dd-sdk-android-rum/src/main/kotlin/com/datadog/android/rum/internal/domain/scope/RumViewScope.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
package com.datadog.android.rum.internal.domain.scope
88

9+
import android.util.Log
910
import androidx.annotation.WorkerThread
1011
import com.datadog.android.api.InternalLogger
1112
import com.datadog.android.api.context.DatadogContext
@@ -1702,11 +1703,11 @@ internal open class RumViewScope(
17021703
}
17031704

17041705
private fun logSynthetics(key: String, value: String) {
1705-
sdkCore.internalLogger.log(
1706-
level = InternalLogger.Level.INFO,
1707-
target = InternalLogger.Target.USER,
1708-
messageBuilder = { "$key=$value" }
1709-
)
1706+
/**
1707+
* We use [android.util.Log] here instead of [InternalLogger] because we want to log regardless of the
1708+
* verbosity level set using [com.datadog.android.Datadog.setVerbosity].
1709+
*/
1710+
Log.i("DatadogSynthetics", "$key=$value")
17101711
}
17111712

17121713
// endregion

0 commit comments

Comments
 (0)