Skip to content

Commit b566487

Browse files
committed
FFL-1460 Log updates in DatadogFlagsClient
1 parent 14ae399 commit b566487

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

features/dd-sdk-android-flags/src/main/kotlin/com/datadog/android/flags/internal/DatadogFlagsClient.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ internal class DatadogFlagsClient(
290290

291291
featureSdkCore.internalLogger.log(
292292
InternalLogger.Level.WARN,
293-
InternalLogger.Target.MAINTAINER,
293+
InternalLogger.Target.USER,
294294
{ "Flag '$flagKey': $errorMessage - ${exception.message}" }
295295
)
296296
}
@@ -456,10 +456,10 @@ internal class DatadogFlagsClient(
456456
VariationType.OBJECT.value -> try {
457457
JSONObject(flag.variationValue)
458458
} catch (exception: JSONException) {
459-
val errorMessage = "Failed to parse value '${flag.variationValue}' as JSONObject - ${exception.message}"
459+
val errorMessage = "Failed to parse value '${flag.variationValue}' as JSONObject"
460460
featureSdkCore.internalLogger.log(
461461
InternalLogger.Level.WARN,
462-
InternalLogger.Target.MAINTAINER,
462+
InternalLogger.Target.USER,
463463
{ "Flag '$flagKey': $errorMessage" },
464464
exception
465465
)
@@ -471,7 +471,7 @@ internal class DatadogFlagsClient(
471471
if (value == null) {
472472
featureSdkCore.internalLogger.log(
473473
InternalLogger.Level.WARN,
474-
InternalLogger.Target.MAINTAINER,
474+
InternalLogger.Target.USER,
475475
{ "Flag '$flagKey': Failed to parse value '${flag.variationValue}' as '${flag.variationType}'" }
476476
)
477477

0 commit comments

Comments
 (0)