Skip to content

Commit 3d51213

Browse files
Merge pull request #42922 from nextcloud/fix/db/no-verbose-dirty-query-logs
fix(db): Remove very verbose dirty query logs
2 parents 242b367 + ab0d7c0 commit 3d51213

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/private/DB/Connection.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ public function executeUpdate(string $sql, array $params = [], array $types = []
321321
public function executeStatement($sql, array $params = [], array $types = []): int {
322322
$tables = $this->getQueriedTables($sql);
323323
$this->tableDirtyWrites = array_unique(array_merge($this->tableDirtyWrites, $tables));
324-
$this->logger->debug('dirty table writes: ' . $sql, ['tables' => $this->tableDirtyWrites]);
325324
$sql = $this->replaceTablePrefix($sql);
326325
$sql = $this->adapter->fixupStatement($sql);
327326
$this->queriesExecuted++;
@@ -644,16 +643,6 @@ private function getMigrator() {
644643
}
645644
}
646645

647-
protected function performConnect(?string $connectionName = null): bool {
648-
$before = $this->isConnectedToPrimary();
649-
$result = parent::performConnect($connectionName);
650-
$after = $this->isConnectedToPrimary();
651-
if (!$before && $after) {
652-
$this->logger->debug('Switched to primary database', ['exception' => new \Exception()]);
653-
}
654-
return $result;
655-
}
656-
657646
public function beginTransaction() {
658647
if (!$this->inTransaction()) {
659648
$this->transactionActiveSince = microtime(true);

0 commit comments

Comments
 (0)