From c87f8ebce84b9c54575929bef5870c33605d6c9f Mon Sep 17 00:00:00 2001 From: Massimo Date: Thu, 7 Jul 2022 12:11:14 +0200 Subject: [PATCH] Enable and save log file when DEBUG_PROXY is enabled --- proxy.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proxy.php b/proxy.php index fd3ba74..15fc7cb 100644 --- a/proxy.php +++ b/proxy.php @@ -14,6 +14,13 @@ // if set to true, will print out more information about request errors so said errors can be more easily debugged. $DEBUG_PROXY = false; +if( $DEBUG_PROXY ){ + error_reporting( E_ALL ); + ini_set( 'log_errors', 1 ); + ini_set( 'display_errors', 1 ); + ini_set( 'error_log', __DIR__ . '/debug-proxy.log' ); +} + // set to true if the target matomo server has a ssl certificate that will fail verification, like when testing. $NO_VERIFY_SSL = false;