From d35880e6586d7196662d91c4edfb555d7204991c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 30 Oct 2024 21:04:16 -0400 Subject: [PATCH] Disabled logging execution time of the mail parser --- cron_ticket_email_parser.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index 3665f4ea..e580dc5b 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -529,7 +529,9 @@ $execution_time_formatted = number_format($execution_time, 2); // Insert a log entry into the logs table $processed_info = "Processed: $processed_count email(s), Unprocessed: $unprocessed_count email(s)"; -mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Execution', log_description = 'Cron Email Parser executed in $execution_time_formatted seconds. $processed_info'"); +// Remove Comment below for Troubleshooting +// mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Execution', log_description = 'Cron Email Parser executed in $execution_time_formatted seconds. $processed_info'"); + // END Calculate execution time // Remove the lock file