From fe40f99ebd4b8e63c50d3d0574dbaf0c02d7b7dc Mon Sep 17 00:00:00 2001 From: Conner Harkness Date: Tue, 2 Sep 2025 07:45:32 -0600 Subject: [PATCH] Better logging --- index.php | 16 +++++++++++++++- lib/Request.php | 15 --------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/index.php b/index.php index aa0db86..a1ac4bf 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,16 @@ 0) $strParam = $_SERVER["PATH_INFO"]; } - - //error_log(json_encode($_SERVER, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); $strPath = $strParam; $strPath = preg_replace("/^\//", "", $strPath); @@ -92,8 +88,6 @@ array_shift($varArgs); - error_log($strParam); - Request::$varArgs = $varArgs; Request::$strResourcePath = $strPath; } @@ -217,18 +211,9 @@ return null; } - - public static function log() - { - //$strPath = $_SERVER["PATH_INFO"]; - - error_log("[{$strPath}] INFO: " . implode(" ", func_get_args())); - } } // Call this no matter what to understand the request: Request::process(); Request::processExtra(); - - Request::log(""); ?>