Differential D20781 Diff 49548 src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | for ($attempt = 1; $attempt <= $max_retries; $attempt++) { | ||||
'Retrying database connection to "%s" after connection '. | 'Retrying database connection to "%s" after connection '. | ||||
'failure (attempt %d; "%s"; error #%d): %s', | 'failure (attempt %d; "%s"; error #%d): %s', | ||||
$host, | $host, | ||||
$attempt, | $attempt, | ||||
get_class($ex), | get_class($ex), | ||||
$code, | $code, | ||||
$ex->getMessage()); | $ex->getMessage()); | ||||
// See T13403. If we're silenced with the "@" operator, don't log | |||||
// this connection attempt. This keeps things quiet if we're | |||||
// running a setup workflow like "bin/config" and expect that the | |||||
// database credentials will often be incorrect. | |||||
if (error_reporting()) { | |||||
phlog($message); | phlog($message); | ||||
} | |||||
} else { | } else { | ||||
$profiler->endServiceCall($call_id, array()); | $profiler->endServiceCall($call_id, array()); | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$this->connection = $conn; | $this->connection = $conn; | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |