Skip to content

Commit

Permalink
Add fn time logging
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Nov 22, 2023
1 parent f6d091b commit 22ae32b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/event/CliHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ public function handle(mixed $event, Context $context, $throw = false): array
], null, $timeout);
$exitCode = null;

echo "Function time remaining: {$context->getRemainingTimeInMillis()}";

try {
echo "Running command: $command";
echo "Running command with $timeout second timeout: $command";

/** @throws ProcessTimedOutException|ProcessFailedException */
$process->mustRun(function($type, $buffer): void {
Expand Down

0 comments on commit 22ae32b

Please sign in to comment.