[webkit-changes] [WebKit/WebKit] 25e7f0: [ews] Reduce excessive logging due to github webhooks

Aakash J noreply at github.com
Wed Mar 8 09:52:56 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 25e7f0c5753514ce60c760ce326e0d170aee1ae6
      https://github.com/WebKit/WebKit/commit/25e7f0c5753514ce60c760ce326e0d170aee1ae6
  Author: Aakash Jain <aakash_jain at apple.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M Tools/CISupport/ews-build/events.py

  Log Message:
  -----------
  [ews] Reduce excessive logging due to github webhooks
https://bugs.webkit.org/show_bug.cgi?id=253529

Reviewed by Jonathan Bedard.

Reduce excessive logging due to github webhooks. This huge logging makes twistd.log unreadable and isn't really useful to use.

* Tools/CISupport/ews-build/events.py:
(logging_disabled): context manager to disable the log.msg function appropriately.
(logging_disabled.__init__):
(logging_disabled.log_disabled):
(logging_disabled.__enter__):
(logging_disabled.__exit__):
(GitHubEventHandlerNoEdits._get_payload):
(GitHubEventHandlerNoEdits.handle_pull_request): Updated logs to include hash (to help in debugging ews history of a hash).

Canonical link: https://commits.webkit.org/261373@main




More information about the webkit-changes mailing list