From 185d21585f82eff6455f24d3b51c2af634ec7986 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 6 Dec 2023 09:20:41 +0100 Subject: [PATCH] wip #65455 --- src/CommandLine.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CommandLine.php b/src/CommandLine.php index 57ea48d..ef069cf 100644 --- a/src/CommandLine.php +++ b/src/CommandLine.php @@ -134,6 +134,8 @@ class CommandLine $c .= ' 2>&1 '; } + $this->commande = $c; + $fonction($c); } $endTime = microtime(true); @@ -259,7 +261,7 @@ class CommandLine public function debug() { - $debug = $this->commande . "\n\n" . file_get_contents($this->output); + $debug = $this->getCommand() . "\n\n" . $this->getOutput(); try { Log::debug($debug); } catch (\Exception $e) { -- 2.39.5