Last modified: 2013-07-30 00:10:47 UTC
During debugging problems with installation of MediaWiki including auto-detected extensions, I wished to have some debug information available, but currently it's not possible to log. It would require to define debuglog in DefaultSettings, as LocalSettings are not available. MaxSem: the problem is that you can't set $wgDebugLog since it's noy installed yet. See also https://bugzilla.wikimedia.org/show_bug.cgi?id=28983#c17 : Proposed is to find a solution to have something like the following in Installer.php function includeExtensions() : foreach( $exts as $e ) { wfInstallerLogDebug( "Installer::includeExtensions: require_once tries to load $path/$e/$e.php" ); require_once( "$path/$e/$e.php" ); }
Sending the debug to syslog or such should be relatively safe and something that could probably be turned on just as an option during installation (even if a hidden one). Having it send logs to an arbitrarily-chosen file obviously is a bit scarier. :)