6548 - [ER] Hide DBHost and DBUser in log

This commit is contained in:
Eric Espie
2023-07-10 17:37:27 +02:00
parent 9afc22bd8f
commit 78396d8e4a
4 changed files with 12 additions and 6 deletions

View File

@@ -188,8 +188,8 @@ final class ItopCounter
if (!$hDBLink)
{
throw new Exception("Could not connect to the DB server (host=$sDBHost, user=$sDBUser): ".mysqli_connect_error().' (mysql errno: '.mysqli_connect_errno().')');
}
throw new MySQLException('Could not connect to the DB server '.mysqli_connect_error().' (mysql errno: '.mysqli_connect_errno(), array('host' => $sDBHost, 'user' => $sDBUser));
}
return $hDBLink;
}