From 05bb62c24fddb7c960076af8b4af5d563931fa8d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 17 Mar 2026 16:41:51 +0100 Subject: [PATCH] wip #8068 @0.5 --- app/Jobs/AuditLink.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Jobs/AuditLink.php b/app/Jobs/AuditLink.php index eacf5adce..6f02bfa85 100644 --- a/app/Jobs/AuditLink.php +++ b/app/Jobs/AuditLink.php @@ -16,14 +16,16 @@ class AuditLink extends Base protected $_batchSize = 500; protected $_url = null; protected static $minTimeBetweenRequests = 2; + protected $_log = false; /** * Create a new job instance. */ - public function __construct($batchSize = 500, $url = null) + public function __construct($batchSize = 500, $url = null, $log = false) { $this->_batchSize = $batchSize; $this->_url = $url; + $this->_log = $log; } public function handle() @@ -73,7 +75,9 @@ class AuditLink extends Base } else { $res = HTTP::getResponseCode($url, 10, 'http://paris.cubedesigners.com:8191/v1'); } - Log::info('Tested ' . $url . ': ' . $res['http_code']); + if ($this->_log) { + Log::info('Tested ' . $url . ': ' . $res['http_code']); + } if ($res['http_code'] != $previousCode) { $res['code_date'] = new \DateTime(); -- 2.39.5