Last modified: 2013-07-30 00:10:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31316, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29316 - Installer.php enhancement proposal: add a way to allow wfDebug() statements for logging installation progress incl. extension installation messages
Installer.php enhancement proposal: add a way to allow wfDebug() statements f...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.20.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-08 06:30 UTC by T. Gries
Modified: 2013-07-30 00:10 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2011-06-08 06:30:53 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" );
}
Comment 1 Brion Vibber 2011-06-08 18:05:50 UTC
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. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links