From cb94dab1ce52083ce4c4849673351fe096cdeb18 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Mon, 16 Aug 2021 17:16:30 -0300 Subject: [PATCH] refactor: removing the check if it's live or no in the debug method on PayPalLoggingManager.php Doing this because there's already a configuration called `log.LogLevel` that takes care of checking this on the PayPalLogger.php and also on Linio's side. We don't need this checked twice. This is preventing us from debugging an current issue. --- lib/PayPal/Core/PayPalLoggingManager.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/PayPal/Core/PayPalLoggingManager.php b/lib/PayPal/Core/PayPalLoggingManager.php index 90521a89..076b02a1 100644 --- a/lib/PayPal/Core/PayPalLoggingManager.php +++ b/lib/PayPal/Core/PayPalLoggingManager.php @@ -110,10 +110,6 @@ public function fine($message) */ public function debug($message) { - $config = PayPalConfigManager::getInstance()->getConfigHashmap(); - // Disable debug in live mode. - if (array_key_exists('mode', $config) && $config['mode'] != 'live') { - $this->logger->debug($message); - } + $this->logger->debug($message); } }