Skip to content

Commit

Permalink
Add more info on db connection message
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodahero committed Feb 23, 2021
1 parent 2b035da commit b840941
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Checks/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public function check(Result $result): Result
$attributes[$attribute] = $pdo->getAttribute(constant("PDO::ATTR_${attribute}"));
}

return $result->pass('Connected to DB', $attributes);
$connection = $this->getConnection();

return $result->pass("Connected to DB (Connection: ${connection})", $attributes);
}

/**
Expand Down

0 comments on commit b840941

Please sign in to comment.