https://bugzilla.wikimedia.org/show_bug.cgi?id=47959

       Web browser: ---
            Bug ID: 47959
           Summary: Set $wgDebugRawPage = true; for all wikis
           Product: Wikimedia
           Version: wmf-deployment
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Site requests
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

If agreed upon, perhaps also set it to true by default or even delete the
variable in mediawiki/core in general.

ResourceLoader emits certain errors (wfDebugLog('resourceloader', ..)) which
cannot be found any other way. Quite major and critical errors.

But they are being excluded from the debug.log etc. because they occur from a
load.php request and since wfIsDebugRawPage() returns true for load.php and
wgDebugRawPage being false, we never see them.

wgDebugRawPage was originally introduced to "to avoid overlapping debug
entries" because action=raw pages were very simplistic. Any error happening
there is either extremely rare or something also happening on the index.php
request that referenced action=raw.

However this is not true for load.php. That should never have been
suppressed[1] in my opinion.

A common error is a mistake in the module definition (e.g. referencing a
javascript file that doesn't exist, minification failing, dependency problems
etc.) that should be logged. At least on wmf.


[1]
https://github.com/wikimedia/mediawiki-core/commit/c00d63dda3df84fd728dc21ffe8bab8060d76ebc

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to