From 625d99d698ec9df39414ac13381a9886e3c5efd1 Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Mon, 1 Dec 2025 16:35:55 -0600 Subject: [PATCH] fix(css-manager): remove debug logging, CSS injection confirmed working MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CSS injection is working correctly in production: - roi-custom-deferred-css appears in page output - 2 snippets with 24KB of CSS being injected 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../Infrastructure/Services/CustomCSSInjector.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Public/CustomCSSManager/Infrastructure/Services/CustomCSSInjector.php b/Public/CustomCSSManager/Infrastructure/Services/CustomCSSInjector.php index 5ceb8fe5..288935df 100644 --- a/Public/CustomCSSManager/Infrastructure/Services/CustomCSSInjector.php +++ b/Public/CustomCSSManager/Infrastructure/Services/CustomCSSInjector.php @@ -35,21 +35,14 @@ final class CustomCSSInjector */ public function injectCriticalCSS(): void { - error_log('ROI CustomCSS: injectCriticalCSS CALLED'); - $pageType = $this->getCurrentPageType(); - error_log('ROI CustomCSS: pageType=' . $pageType); - $snippets = $this->getCriticalUseCase->execute($pageType); - error_log('ROI CustomCSS: critical snippets count=' . count($snippets)); if (empty($snippets)) { - error_log('ROI CustomCSS: NO critical snippets, returning'); return; } $css = $this->combineSnippets($snippets); - error_log('ROI CustomCSS: critical CSS length=' . strlen($css)); if (!empty($css)) { printf( @@ -64,21 +57,14 @@ final class CustomCSSInjector */ public function injectDeferredCSS(): void { - error_log('ROI CustomCSS: injectDeferredCSS CALLED'); - $pageType = $this->getCurrentPageType(); - error_log('ROI CustomCSS: deferred pageType=' . $pageType); - $snippets = $this->getDeferredUseCase->execute($pageType); - error_log('ROI CustomCSS: deferred snippets count=' . count($snippets)); if (empty($snippets)) { - error_log('ROI CustomCSS: NO deferred snippets, returning'); return; } $css = $this->combineSnippets($snippets); - error_log('ROI CustomCSS: deferred CSS length=' . strlen($css)); if (!empty($css)) { printf(