Skip to content

Commit

Permalink
remove header from logger
Browse files Browse the repository at this point in the history
  • Loading branch information
stubbedev committed Oct 18, 2024
1 parent 50ae03b commit 16f0023
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions controllers/admin/ClerkLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -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'];
Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit 16f0023

Please sign in to comment.