aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-01-18 11:19:33 +0100
committerAnna <anna@nextcloud.com>2024-01-18 18:33:07 +0100
commitab0d7c007d13580cf4a1498aa27fb03e3a2e2e6c (patch)
tree92a911045d8107ebd508a1f9e866236d6f5f645e /lib
parent242b367682c08e104925ff9101a5795fd15be71a (diff)
downloadnextcloud-server-ab0d7c007d13580cf4a1498aa27fb03e3a2e2e6c.tar.gz
nextcloud-server-ab0d7c007d13580cf4a1498aa27fb03e3a2e2e6c.zip
fix(db): Remove very verbose dirty query logs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/Connection.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index b65f4520290..e55de12f18c 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -321,7 +321,6 @@ class Connection extends PrimaryReadReplicaConnection {
public function executeStatement($sql, array $params = [], array $types = []): int {
$tables = $this->getQueriedTables($sql);
$this->tableDirtyWrites = array_unique(array_merge($this->tableDirtyWrites, $tables));
- $this->logger->debug('dirty table writes: ' . $sql, ['tables' => $this->tableDirtyWrites]);
$sql = $this->replaceTablePrefix($sql);
$sql = $this->adapter->fixupStatement($sql);
$this->queriesExecuted++;
@@ -644,16 +643,6 @@ class Connection extends PrimaryReadReplicaConnection {
}
}
- protected function performConnect(?string $connectionName = null): bool {
- $before = $this->isConnectedToPrimary();
- $result = parent::performConnect($connectionName);
- $after = $this->isConnectedToPrimary();
- if (!$before && $after) {
- $this->logger->debug('Switched to primary database', ['exception' => new \Exception()]);
- }
- return $result;
- }
-
public function beginTransaction() {
if (!$this->inTransaction()) {
$this->transactionActiveSince = microtime(true);