Skip to content

Commit

Permalink
Reduce logging volume
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259421
rdar://112718525

Reviewed by Eric Carlson and Brent Fulgham.

Reduce logging volume, since WebKit is sometimes quarantined by the logging system due to high volume.

* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::scheduleUpdateMediaState):
(WebCore::HTMLMediaElement::updateMediaPlayer):

Canonical link: https://commits.webkit.org/266254@main
  • Loading branch information
pvollan committed Jul 24, 2023
1 parent f70bfc7 commit 681597b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/WebCore/html/HTMLMediaElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8564,10 +8564,10 @@ void HTMLMediaElement::scheduleUpdateMediaState()
return;

auto logSiteIdentifier = LOGIDENTIFIER;
ALWAYS_LOG(logSiteIdentifier, "task scheduled");
INFO_LOG(logSiteIdentifier, "task scheduled");
queueCancellableTaskKeepingObjectAlive(*this, TaskSource::MediaElement, m_updateMediaStateTaskCancellationGroup, [this, logSiteIdentifier] {
UNUSED_PARAM(logSiteIdentifier);
ALWAYS_LOG(logSiteIdentifier, "lambda(), task fired");
INFO_LOG(logSiteIdentifier, "lambda(), task fired");
Ref<HTMLMediaElement> protectedThis(*this); // updateMediaState calls methods that can trigger arbitrary DOM mutations.
updateMediaState();
});
Expand Down Expand Up @@ -9022,7 +9022,7 @@ MediaElementSession& HTMLMediaElement::mediaSession() const

void HTMLMediaElement::updateMediaPlayer(IntSize presentationSize, bool shouldMaintainAspectRatio)
{
ALWAYS_LOG(LOGIDENTIFIER);
INFO_LOG(LOGIDENTIFIER);
m_player->setPresentationSize(presentationSize);
visibilityStateChanged();
m_player->setVisibleInViewport(isVisibleInViewport());
Expand Down

0 comments on commit 681597b

Please sign in to comment.