[wp-trac] [WordPress Trac] #61992: Debug log for updates not removed after RC 1

WordPress Trac noreply at wordpress.org
Thu Sep 5 14:23:22 UTC 2024


#61992: Debug log for updates not removed after RC 1
-----------------------------+----------------------
 Reporter:  webzunft         |       Owner:  (none)
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Upgrade/Install  |     Version:  6.6
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by hellofromTonya):

 * status:  new => closed
 * version:   => 6.6
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Hello @webzunft,

 Welcome back to WordPress Core Trac. Thank you for opening this ticket to
 learn more about this are of code and why / when these messages are
 logged.

 As you noted, these messages are in your `debug.log` file. This particular
 log file is generated when the site is in debug mode. In debug mode, these
 messages are intentional (by design as of [58139]) with the purpose to log
 these events to help contributors, support folks, developers, users, etc
 with debugging tasks.

 When do they appear? When the site is in a debug state, meaning the site's
 `WP_DEBUG` and `WP_DEBUG_LOG` constants are both `true`
 ([https://core.trac.wordpress.org/browser/tags/6.6.1/src/wp-admin/includes
 /class-wp-automatic-updater.php#L449 see code]):

 {{{
 $is_debug = WP_DEBUG && WP_DEBUG_LOG;
 }}}

 By default (which includes a live production site), these debug constants
 are not enabled and thus, these upgrade / update messages are not logged.

 Does that make sense?

 As it's by design, closing this ticket as `wontfix`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61992#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list