Don't log mediaId in EventLogger and DefaultMediaSourceFactory.

The media id defaults to the URI that shouldn't be logged to logcat.

PiperOrigin-RevId: 324770157
This commit is contained in:
tonihei 2020-08-04 09:47:18 +01:00 committed by kim-vde
parent ea01489c8b
commit 33af7a4536
2 changed files with 1 additions and 7 deletions

View file

@ -381,11 +381,7 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
}
AdsLoader adsLoader = adSupportProvider.getAdsLoader(mediaItem.playbackProperties.adTagUri);
if (adsLoader == null) {
Log.w(
TAG,
String.format(
"Playing media without ads. No AdsLoader for media item with mediaId '%s'.",
mediaItem.mediaId));
Log.w(TAG, "Playing media without ads. No AdsLoader for provided adTagUri");
return mediaSource;
}
return new AdsMediaSource(

View file

@ -195,8 +195,6 @@ public class EventLogger implements AnalyticsListener {
logd(
"mediaItem ["
+ getEventTimeString(eventTime)
+ ", "
+ (mediaItem == null ? "null" : "mediaId=" + mediaItem.mediaId)
+ ", reason="
+ getMediaItemTransitionReasonString(reason)
+ "]");