From 74195cb1ef741ec1037156c339109e6a6ba6a74a Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 17 Nov 2022 20:25:57 +0100 Subject: Capture output from scheduler tasks --- app/Console/Commands/CheckImage.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/Console/Commands/CheckImage.php') diff --git a/app/Console/Commands/CheckImage.php b/app/Console/Commands/CheckImage.php index fcd6d4a..770db83 100644 --- a/app/Console/Commands/CheckImage.php +++ b/app/Console/Commands/CheckImage.php @@ -30,7 +30,15 @@ class CheckImage extends Command { $background = new Background(); echo "checkImage()\n"; + + ob_start(); + $background->checkImage(); + + $msg = ob_get_contents(); + ob_end_clean(); + $this->info( $msg ); + return Command::SUCCESS; } } -- cgit v1.2.3