Hoo man has uploaded a new change for review.

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

Change subject: Fix up logging (and log rotation) for dumpwikidatajson
......................................................................

Fix up logging (and log rotation) for dumpwikidatajson

Affects snapshot1003

Change-Id: I993e27580a3eb3943f88cadc1eca2195e6e3425e
---
M modules/snapshot/files/dumpwikidatajson.sh
M modules/snapshot/files/logrotate.d_dumpwikidatajson
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/82/179982/1

diff --git a/modules/snapshot/files/dumpwikidatajson.sh 
b/modules/snapshot/files/dumpwikidatajson.sh
index e0888b4..4f6bbae 100644
--- a/modules/snapshot/files/dumpwikidatajson.sh
+++ b/modules/snapshot/files/dumpwikidatajson.sh
@@ -19,7 +19,7 @@
 shards=4
 
 while [ $i -lt $shards ]; do
-       php $multiversionscript 
extensions/Wikidata/extensions/Wikibase/repo/maintenance/dumpJson.php --wiki 
wikidatawiki --shard $i --sharding-factor $shards --snippet 2>> 
/var/log/wikidatadump/dumpwikidatajson-$i | gzip > $tempDir/wikidataJson.$i.gz &
+       php $multiversionscript 
extensions/Wikidata/extensions/Wikibase/repo/maintenance/dumpJson.php --wiki 
wikidatawiki --shard $i --sharding-factor $shards --snippet 2>> 
/var/log/wikidatadump/dumpwikidatajson-$i.log | gzip > 
$tempDir/wikidataJson.$i.gz &
        let i++
 done
 
diff --git a/modules/snapshot/files/logrotate.d_dumpwikidatajson 
b/modules/snapshot/files/logrotate.d_dumpwikidatajson
index 207f872..2ac0dd8 100644
--- a/modules/snapshot/files/logrotate.d_dumpwikidatajson
+++ b/modules/snapshot/files/logrotate.d_dumpwikidatajson
@@ -1,6 +1,6 @@
 # logrotate config for Wikidata json dump logs
 # This file is managed by Puppet
-/var/log/wikidatadump/dumpwikidatajson-* {
+/var/log/wikidatadump/dumpwikidatajson-*.log {
     daily
     missingok
     rotate 5

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I993e27580a3eb3943f88cadc1eca2195e6e3425e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hoo man <[email protected]>

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

Reply via email to