Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/90352


Change subject: properly set $wgDebugLogFile path under Apache
......................................................................

properly set $wgDebugLogFile path under Apache

WORKSPACE is not set under Apache, fallback on $IP.

Change-Id: I3959db0b1d7be25378e9345d71127729464f8e39
---
M mediawiki/conf.d/00_set_debug_log.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/jenkins 
refs/changes/52/90352/1

diff --git a/mediawiki/conf.d/00_set_debug_log.php 
b/mediawiki/conf.d/00_set_debug_log.php
index 18c1c59..51e97e8 100644
--- a/mediawiki/conf.d/00_set_debug_log.php
+++ b/mediawiki/conf.d/00_set_debug_log.php
@@ -7,7 +7,9 @@
 if( $wgCommandLineMode ) {
        $wgDebugLogFile = getenv( 'WORKSPACE' ) . '/log/mw-debug-cli.log';
 } else {
-       $wgDebugLogFile = getenv( 'WORKSPACE' ) . '/log/mw-debug-www.log';
+       # Under Apache, there is no Jenkins environnement variable. Since 
MediaWiki
+       # include path is the workspace, use $IP instead.
+       $wgDebugLogFile = $IP . '/log/mw-debug-www.log';
        # Make sure it is writable by Apache:
        touch( $wgDebugLogFile );
        chmod( $wgDebugLogFile, '0666' );

-- 
To view, visit https://gerrit.wikimedia.org/r/90352
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3959db0b1d7be25378e9345d71127729464f8e39
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to