add logging to scripts/rewrites/content.php