Skip to content

Commit d5348a0

Browse files
committed
MQE-1147: Turning off all logging for Readiness Extension
- PHPMD fixes
1 parent 468502d commit d5348a0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Magento/FunctionalTestingFramework/Extension/PageReadinessExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ private function shouldSkipCheck($step)
251251
* @param string $message
252252
* @param array $context
253253
* @return void
254+
* @SuppressWarnings(PHPMD)
254255
*/
255256
private function logDebug($message, $context = [])
256257
{
@@ -264,6 +265,7 @@ private function logDebug($message, $context = [])
264265
$logContext[$metric->getName() . '.failCount'] = $metric->getFailureCount();
265266
}
266267
$context = array_merge($logContext, $context);
268+
//TODO REMOVE THIS LINE, UNCOMMENT LOGGER
267269
//$this->logger->info($message, $context);
268270
}
269271
}

src/Magento/FunctionalTestingFramework/Extension/ReadinessMetrics/AbstractMetricCheck.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,12 @@ public function resetTracker()
306306
* @param string $message
307307
* @param array $context
308308
* @return void
309+
* @SuppressWarnings(PHPMD)
309310
*/
310311
protected function errorLog($message, $context = [])
311312
{
312313
$context = array_merge($this->getLogContext(), $context);
314+
//TODO REMOVE THIS LINE, UNCOMMENT LOGGER
313315
//$this->logger->error($message, $context);
314316
}
315317

@@ -319,10 +321,12 @@ protected function errorLog($message, $context = [])
319321
* @param string $message
320322
* @param array $context
321323
* @return void
324+
* @SuppressWarnings(PHPMD)
322325
*/
323326
protected function infoLog($message, $context = [])
324327
{
325328
$context = array_merge($this->getLogContext(), $context);
329+
//TODO REMOVE THIS LINE, UNCOMMENT LOGGER
326330
//$this->logger->info($message, $context);
327331
}
328332

@@ -332,11 +336,13 @@ protected function infoLog($message, $context = [])
332336
* @param string $message
333337
* @param array $context
334338
* @return void
339+
* @SuppressWarnings(PHPMD)
335340
*/
336341
protected function debugLog($message, $context = [])
337342
{
338343
if ($this->verbose) {
339344
$context = array_merge($this->getLogContext(), $context);
345+
//TODO REMOVE THIS LINE, UNCOMMENT LOGGER
340346
//$this->logger->debug($message, $context);
341347
}
342348
}

0 commit comments

Comments
 (0)