Skip to content

Commit 9fe5158

Browse files
Add log message printing workflow:wait start time
1 parent a141960 commit 9fe5158

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Commands/Workflow/WaitCommand.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,15 @@ public function workflowWait(
6969
$startTime = $options['start'];
7070
if (!$startTime) {
7171
$startTime = time() - 60;
72+
// log start time as "<unixtime> (<formatted time>)"
73+
$this->log()->debug(
74+
"No --start option provided, using current time minus 60 seconds: {start} ({formatted})",
75+
[
76+
'start' => $startTime,
77+
'formatted' => date('Y-m-d H:i:s', $startTime),
78+
]
79+
);
7280
}
73-
7481
if (!empty($options['commit'])) {
7582
$this->waitForCommit($startTime, $site, $env_name, $options['commit'], $options['max']);
7683
return;

0 commit comments

Comments
 (0)