Skip to content

Commit 402a774

Browse files
Merge branch 'mittwald-database-creation-status-retries'
2 parents ae529a8 + fb55984 commit 402a774

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Database/Manager/MittwaldApi.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use MoveElevator\DeployerTools\Utility\VarUtility;
2323

2424
use function Deployer\debug;
25+
use function Deployer\info;
2526
use function Deployer\get;
2627
use function Deployer\set;
2728
use function Deployer\has;
@@ -214,15 +215,15 @@ private function checkForDatabaseReadyStatus(string $mysqlUserId, int $waitingTi
214215

215216
while ($maxRetries > 0) {
216217
try {
217-
debug("Checking status for MySQL user {$mysqlUserId}, remaining attempts: {$maxRetries}");
218+
info("Checking status for MySQL user {$mysqlUserId}, remaining attempts: {$maxRetries}");
218219
$response = $this->initClient()
219220
->database()
220221
->getMysqlUser(
221222
new GetMysqlUserRequest($mysqlUserId)
222223
);
223224

224225
if (DatabaseUserStatus::ready === $response->getBody()->getStatus()) {
225-
debug("MySQL user {$mysqlUserId} is ready.");
226+
info("MySQL user {$mysqlUserId} is ready.");
226227
return true;
227228
}
228229
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)