wiki.techinc.nl/includes/resourceloader
Timo Tijhof 7142afaba0 resourceloader: Write to debug log for all fatal errors
There's various fatal errors that can happen in ResourceLoader.
Since in a javascript/css response there is no error page we can
show, we currently catch them all and output them in a block
comment on top of load.php.

This maintains valid syntax for the response and keeps the error
easy to view (if you're looking for it in the browser).

However from a debugging perspective it is a nightmare. Literally
the only visible difference from a normal request response is
the cache maxage (if hasErrors: use unversionsed maxage).

For all errors we currently already catch and write to request
response outpout, also write to debug log.

This also helps in fixing bug #.

This commit basically changes the following pattern:

    // Add exception to the output as a comment
    $errors .= $this->makeComment( $e->__toString() );
    $this->hasErrors = true;

to:

    wfDebugLog( 'resourceloader', __METHOD__ . ": <failure summary>: $e\n" );
    $this->hasErrors = true;
    // Add exception to the output as a comment
    $errors .= $this->makeComment( $e->__toString() );

Bug: 44018
Change-Id: I684f6492f839a6c6adb07b0640e88cfea21fcf60
2013-05-20 19:39:27 +00:00
..
ResourceLoader.php resourceloader: Write to debug log for all fatal errors 2013-05-20 19:39:27 +00:00
ResourceLoaderContext.php Fixed @param tags to conform with Doxygen format. 2013-03-11 13:15:01 -04:00
ResourceLoaderFileModule.php resourceloader: Consistently use 'resourceloader' log group 2013-05-20 19:35:11 +00:00
ResourceLoaderFilePageModule.php Added missing GPLv2 headers in some places. 2012-04-30 09:16:10 +02:00
ResourceLoaderLanguageDataModule.php fix some spacing 2013-03-25 22:22:46 +00:00
ResourceLoaderModule.php phpcs: Pass includes/resourceloader/ 2013-04-03 02:16:02 +02:00
ResourceLoaderNoscriptModule.php Remove a bunch of trailing spaces and unneeded newlines 2012-10-19 22:03:05 +02:00
ResourceLoaderSiteModule.php Remove the $wgHandheldStyle config variable entirely 2013-05-19 15:39:34 +02:00
ResourceLoaderStartUpModule.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
ResourceLoaderUserCSSPrefsModule.php (bug 41729) Move section edit links to after the headings 2013-04-29 00:00:09 +00:00
ResourceLoaderUserGroupsModule.php Fixed spacing in logging/parser/profiler/rl/revdel/search folder 2013-04-20 17:38:24 +02:00
ResourceLoaderUserModule.php ResourceLoader: Honor $wgAllow* settings in site/user modules 2013-04-03 23:46:11 +02:00
ResourceLoaderUserOptionsModule.php Combine JavaScript and JSON encoding logic 2013-03-27 20:22:45 -04:00
ResourceLoaderUserTokensModule.php phpcs: Pass includes/resourceloader/ 2013-04-03 02:16:02 +02:00
ResourceLoaderWikiModule.php resourceloader: Consistently use 'resourceloader' log group 2013-05-20 19:35:11 +00:00