Print the url just in the development version

Co-authored-by: HB9HIL <80885850+HB9HIL@users.noreply.github.com>
This commit is contained in:
Patrick Winnertz
2024-08-23 15:00:45 +02:00
committed by GitHub
parent 01457019bf
commit 2316331bea

View File

@@ -89,7 +89,9 @@ class cron extends CI_Controller {
echo "CRON: " . $cron->id . " -> RUNNING...\n";
$url = local_url() . $cron->function;
echo "CRON: " . $cron->id . " -> URL: " . $url . "\n";
if (ENVIRONMENT == "development") {
echo "CRON: " . $cron->id . " -> URL: " . $url . "\n";
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);