Adjust shell debug log

This commit is contained in:
crazywhalecc
2024-07-09 00:44:03 +08:00
committed by Jerry Ma
parent 778cd7b2c7
commit aad260c31e
2 changed files with 5 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ function f_passthru(string $cmd): ?bool
if ($danger) {
logger()->notice('Running dangerous command: ' . $cmd);
} else {
logger()->debug('Running command with direct output: ' . $cmd);
logger()->debug('[PASSTHRU] ' . $cmd);
}
$ret = passthru($cmd, $code);
if ($code !== 0) {