mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
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:
parent
ea01489c8b
commit
33af7a4536
2 changed files with 1 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -195,8 +195,6 @@ public class EventLogger implements AnalyticsListener {
|
|||
logd(
|
||||
"mediaItem ["
|
||||
+ getEventTimeString(eventTime)
|
||||
+ ", "
|
||||
+ (mediaItem == null ? "null" : "mediaId=" + mediaItem.mediaId)
|
||||
+ ", reason="
|
||||
+ getMediaItemTransitionReasonString(reason)
|
||||
+ "]");
|
||||
|
|
|
|||
Loading…
Reference in a new issue