MediaWiki
REL1_32
DevelopmentSettings.php
Go to the documentation of this file.
1
<?php
20
// Enable showing of errors
21
error_reporting( -1 );
22
ini_set(
'display_errors'
, 1 );
23
27
global
$wgDevelopmentWarnings
,
$wgShowExceptionDetails
,
$wgShowHostnames
,
28
$wgDebugRawPage
,
$wgDebugComments
,
$wgDebugDumpSql
,
$wgDebugTimestamps
,
29
$wgCommandLineMode
,
$wgDebugLogFile
,
$wgDBerrorLog
,
$wgDebugLogGroups
;
30
31
// Use of wfWarn() should cause tests to fail
32
$wgDevelopmentWarnings
=
true
;
33
34
// Enable showing of errors
35
$wgShowExceptionDetails
=
true
;
36
$wgShowHostnames
=
true
;
37
$wgDebugRawPage
=
true
;
// T49960
38
39
// Enable log files
40
$logDir
= getenv(
'MW_LOG_DIR'
);
41
if
(
$logDir
) {
42
if
(
$wgCommandLineMode
) {
43
$wgDebugLogFile
=
"$logDir/mw-debug-cli.log"
;
44
}
else
{
45
$wgDebugLogFile
=
"$logDir/mw-debug-www.log"
;
46
}
47
$wgDBerrorLog
=
"$logDir/mw-dberror.log"
;
48
$wgDebugLogGroups
[
'ratelimit'
] =
"$logDir/mw-ratelimit.log"
;
49
$wgDebugLogGroups
[
'exception'
] =
"$logDir/mw-exception.log"
;
50
$wgDebugLogGroups
[
'error'
] =
"$logDir/mw-error.log"
;
51
}
52
unset(
$logDir
);
53
54
// Disable rate-limiting
55
$wgRateLimits
= [];
$logDir
$logDir
Definition
DevelopmentSettings.php:40
$wgDebugLogGroups
global $wgDebugLogGroups
Definition
DevelopmentSettings.php:29
$wgDebugTimestamps
global $wgDebugTimestamps
Definition
DevelopmentSettings.php:28
$wgShowHostnames
global $wgShowHostnames
Definition
DevelopmentSettings.php:27
$wgDebugLogFile
global $wgDebugLogFile
Definition
DevelopmentSettings.php:29
$wgCommandLineMode
global $wgCommandLineMode
Definition
DevelopmentSettings.php:29
$wgDBerrorLog
global $wgDBerrorLog
Definition
DevelopmentSettings.php:29
$wgDebugComments
global $wgDebugComments
Definition
DevelopmentSettings.php:28
$wgShowExceptionDetails
global $wgShowExceptionDetails
Definition
DevelopmentSettings.php:27
$wgDebugRawPage
global $wgDebugRawPage
Definition
DevelopmentSettings.php:28
$wgDebugDumpSql
global $wgDebugDumpSql
Definition
DevelopmentSettings.php:28
$wgDevelopmentWarnings
global $wgDevelopmentWarnings
Debugging: MediaWiki.
Definition
DevelopmentSettings.php:27
$wgRateLimits
$wgRateLimits
Definition
DevelopmentSettings.php:55
includes
DevelopmentSettings.php
Generated on Mon Nov 25 2024 15:57:00 for MediaWiki by
1.10.0