diff --git a/includes/utilities.php b/includes/utilities.php index d2d2edc..7a846a4 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -287,3 +287,16 @@ function fetchAndStoreLogPage($pdo, $user, $url) { return $responseData['_metadata']['links']['next'] ?? null; } + +/** + * Print a variable to the console for debugging purposes. + * + * @param mixed $data The data to print to the console. + * + * @return void + */ +function consoleLog( $data ) { + echo ''; +} diff --git a/tests/process_log_entries_test.php b/tests/process_log_entries_test.php index 1c8acf6..c19359f 100644 --- a/tests/process_log_entries_test.php +++ b/tests/process_log_entries_test.php @@ -22,15 +22,6 @@ if (!defined('USER_KEYS')) { ]); } -// consoleLog was removed from includes/utilities.php (commit 3ebc5e2), but the -// rewritten processLogEntries() still calls it for skipped entries. Define a -// local no-op here so the test does not trigger a fatal error. -if (!function_exists('consoleLog')) { - function consoleLog(string $message): void { - // Intentionally silent — these are "skip" notices during the test. - } -} - require_once __DIR__ . '/../includes/exceptions.php'; require_once __DIR__ . '/../includes/utilities.php';