Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #77 from ssintzz/updateConnectionExceptionLogs
Browse files Browse the repository at this point in the history
Updating ConnectionGoneAwayException logs to not expose credentials
  • Loading branch information
jarredwsimmer authored Feb 25, 2020
2 parents afe889e + 0a82fb7 commit 293cb35
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Zynga/Framework/Database/V2/Driver/GenericPDO/Base.hh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ class Base extends BaseDriver {
// if not connected attempt to connect.
if ($this->_dbh === null) {
throw new ConnectionGoneAwayException(
'NO_CONNECTION host='.$this->getConfig()->getConnectionString(),
'NO_CONNECTION host='.
$this->getConfig()->getCurrentServer().
' schema='.
$this->getConfig()->getCurrentDatabase(),
);
}

Expand Down Expand Up @@ -187,7 +190,10 @@ class Base extends BaseDriver {

if ($this->_dbh === null) {
throw new ConnectionGoneAwayException(
'NO_CONNECTION host='.$this->getConfig()->getConnectionString(),
'NO_CONNECTION host='.
$this->getConfig()->getCurrentServer().
' schema='.
$this->getConfig()->getCurrentDatabase(),
);
}

Expand Down

0 comments on commit 293cb35

Please sign in to comment.