We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
'logSql' => false
1 parent b8657dc commit 84d5223Copy full SHA for 84d5223
src/DBAL/Logging/Driver.php
@@ -21,7 +21,9 @@ public function __construct(
21
22
public function connect(#[SensitiveParameter] array $params): DriverInterface\Connection
23
{
24
- _log()->debug('Connecting to DB', $this->maskPassword($params));
+ if ($this->logSql) {
25
+ _log()->debug('Connecting to DB', $this->maskPassword($params));
26
+ }
27
28
// Don't bother to wrap the connection if we will never log SQL queries to file...
29
$connection = parent::connect($params);
0 commit comments