From 5672fa4935d5332c3792f337a18d8a4c4f6b767e Mon Sep 17 00:00:00 2001 From: addshore Date: Mon, 30 Oct 2017 15:50:13 +0100 Subject: [PATCH] Add some basic mediawiki error logs --- wikibase/Dockerfile | 2 ++ wikibase/LocalSettings.php | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/wikibase/Dockerfile b/wikibase/Dockerfile index 6ab1b8c..e61978a 100644 --- a/wikibase/Dockerfile +++ b/wikibase/Dockerfile @@ -19,6 +19,8 @@ FROM mediawiki:1.29 RUN a2enmod rewrite +RUN install -d /var/log/mediawiki -o www-data + COPY --from=composer /Wikibase /var/www/html/extensions/Wikibase COPY wait-for-it.sh /wait-for-it.sh COPY entrypoint.sh /entrypoint.sh diff --git a/wikibase/LocalSettings.php b/wikibase/LocalSettings.php index 9107ec2..d7fc403 100644 --- a/wikibase/LocalSettings.php +++ b/wikibase/LocalSettings.php @@ -6,6 +6,13 @@ $wgDBuser = "wikiuser"; $wgDBpassword = "sqlpass"; +## Logs +$wgDebugLogGroups = array( + 'resourceloader' => '/var/log/mediawiki/resourceloader.log', + 'exception' => '/var/log/mediawiki/exception.log', + 'error' => '/var/log/mediawiki/error.log', +); + ## Locale $wgShellLocale = "en_US.utf8";