From 16f0023f7a67417792d10d438b6a4b6ba1b14ed0 Mon Sep 17 00:00:00 2001 From: Alexander Stage Date: Fri, 18 Oct 2024 12:43:33 +0200 Subject: [PATCH] remove header from logger --- controllers/admin/ClerkLogger.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/controllers/admin/ClerkLogger.php b/controllers/admin/ClerkLogger.php index ee1c981..28cc453 100644 --- a/controllers/admin/ClerkLogger.php +++ b/controllers/admin/ClerkLogger.php @@ -67,7 +67,6 @@ function __construct() */ public function log($Message, $Metadata) { - header('User-Agent: ClerkExtensionBot Prestashop/v' ._PS_VERSION_. ' Clerk/v'.Module::getInstanceByName('clerk')->version. ' PHP/v'.phpversion()); if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $Metadata['uri'] = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; @@ -144,7 +143,6 @@ public function log($Message, $Metadata) */ public function error($Message, $Metadata) { - header('User-Agent: ClerkExtensionBot Prestashop/v' ._PS_VERSION_. ' Clerk/v'.Module::getInstanceByName('clerk')->version. ' PHP/v'.phpversion()); if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $Metadata['uri'] = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; @@ -216,7 +214,6 @@ public function error($Message, $Metadata) */ public function warn($Message, $Metadata) { - header('User-Agent: ClerkExtensionBot Prestashop/v' ._PS_VERSION_. ' Clerk/v'.Module::getInstanceByName('clerk')->version. ' PHP/v'.phpversion()); if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $Metadata['uri'] = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];