From: Aaron Schulz Date: Wed, 21 Feb 2018 21:36:47 +0000 (-0800) Subject: rdbms: use DEBUG level for more ChronologyProtector log entries X-Git-Tag: 1.31.0-rc.0~543^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=9f0757a0a325ed755c1057a141cc9ddcac1b007b;p=lhc%2Fweb%2Fwiklou.git rdbms: use DEBUG level for more ChronologyProtector log entries Change-Id: Ie1795abe52d9162af556a6534a94cc3e4a565d43 --- diff --git a/includes/libs/rdbms/ChronologyProtector.php b/includes/libs/rdbms/ChronologyProtector.php index 4fcd88599c..88e276f122 100644 --- a/includes/libs/rdbms/ChronologyProtector.php +++ b/includes/libs/rdbms/ChronologyProtector.php @@ -124,7 +124,7 @@ class ChronologyProtector implements LoggerAwareInterface { $this->startupPositions[$masterName] instanceof DBMasterPos ) { $pos = $this->startupPositions[$masterName]; - $this->logger->info( __METHOD__ . ": LB for '$masterName' set to pos $pos\n" ); + $this->logger->debug( __METHOD__ . ": LB for '$masterName' set to pos $pos\n" ); $lb->waitFor( $pos ); } } @@ -148,11 +148,11 @@ class ChronologyProtector implements LoggerAwareInterface { if ( $lb->getServerCount() > 1 ) { $pos = $lb->getMasterPos(); if ( $pos ) { - $this->logger->info( __METHOD__ . ": LB for '$masterName' has pos $pos\n" ); + $this->logger->debug( __METHOD__ . ": LB for '$masterName' has pos $pos\n" ); $this->shutdownPositions[$masterName] = $pos; } } else { - $this->logger->info( __METHOD__ . ": DB '$masterName' touched\n" ); + $this->logger->debug( __METHOD__ . ": DB '$masterName' touched\n" ); } $this->shutdownTouchDBs[$masterName] = 1; } @@ -186,7 +186,7 @@ class ChronologyProtector implements LoggerAwareInterface { return []; // nothing to save } - $this->logger->info( __METHOD__ . ": saving master pos for " . + $this->logger->debug( __METHOD__ . ": saving master pos for " . implode( ', ', array_keys( $this->shutdownPositions ) ) . "\n" ); @@ -299,10 +299,10 @@ class ChronologyProtector implements LoggerAwareInterface { } $this->startupPositions = $data ? $data['positions'] : []; - $this->logger->info( __METHOD__ . ": key is {$this->key} (read)\n" ); + $this->logger->debug( __METHOD__ . ": key is {$this->key} (read)\n" ); } else { $this->startupPositions = []; - $this->logger->info( __METHOD__ . ": key is {$this->key} (unread)\n" ); + $this->logger->debug( __METHOD__ . ": key is {$this->key} (unread)\n" ); } }