From: Amir Sarabadani Date: Thu, 5 Jul 2018 15:11:29 +0000 (+0200) Subject: Append new line character to output of populateChangeTagDef.php X-Git-Tag: 1.34.0-rc.0~4868^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=501d31060ed903bd22846258221816bb93542dd9;p=lhc%2Fweb%2Fwiklou.git Append new line character to output of populateChangeTagDef.php Right now, I run it in prod and it's basically useless Change-Id: Ieb11884c3e9243df3058118cf2d581e715892595 --- diff --git a/maintenance/populateChangeTagDef.php b/maintenance/populateChangeTagDef.php index b2e976c960..707eb29f75 100644 --- a/maintenance/populateChangeTagDef.php +++ b/maintenance/populateChangeTagDef.php @@ -151,7 +151,7 @@ class PopulateChangeTagDef extends Maintenance { $dbw = $this->lbFactory->getMainLB()->getConnection( DB_MASTER ); $sleep = (int)$this->getOption( 'sleep', 10 ); $lastId = 0; - $this->output( "Starting to add ct_tag_id = {$tagId} for ct_tag = {$tagName}" ); + $this->output( "Starting to add ct_tag_id = {$tagId} for ct_tag = {$tagName}\n" ); while ( true ) { // Given that indexes might not be there, it's better to use replica $ids = $dbr->selectFieldValues( @@ -173,7 +173,7 @@ class PopulateChangeTagDef extends Maintenance { ); continue; } else { - $this->output( "Updating ct_tag_id = {$tagId} up to row ct_id = {$lastId}" ); + $this->output( "Updating ct_tag_id = {$tagId} up to row ct_id = {$lastId}\n" ); } $dbw->update( @@ -189,7 +189,7 @@ class PopulateChangeTagDef extends Maintenance { } } - $this->output( "Finished adding ct_tag_id = {$tagId} for ct_tag = {$tagName}" ); + $this->output( "Finished adding ct_tag_id = {$tagId} for ct_tag = {$tagName}\n" ); } }