summaryrefslogtreecommitdiff
path: root/lib/SQL.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SQL.php')
-rw-r--r--lib/SQL.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/SQL.php b/lib/SQL.php
index add6fa6..102f59d 100644
--- a/lib/SQL.php
+++ b/lib/SQL.php
@@ -105,7 +105,8 @@ class SQL
protected function connect()
{
if (!$this->conn && !$this->conn_tried) {
- Log::debug("SQL: Connecting to " . $this->sql_uri);
+ $passwd_regex = '|^([a-zA-Z0-9]+://[^:]+:)[^@]+|';
+ Log::debug("SQL: Connecting to " . preg_replace($passwd_regex, '\\1***', $this->sql_uri));
$this->conn_tried = true;