Skip to content

Commit ae109cd

Browse files
committed
Turning off all logging for Readiness Extension
- Causing jenkins failures
1 parent 012f56f commit ae109cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Magento/FunctionalTestingFramework/Extension/PageReadinessExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function logDebug($message, $context = [])
264264
$logContext[$metric->getName() . '.failCount'] = $metric->getFailureCount();
265265
}
266266
$context = array_merge($logContext, $context);
267-
$this->logger->info($message, $context);
267+
//$this->logger->info($message, $context);
268268
}
269269
}
270270
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private function getCurrentValue($refresh = false)
248248
*/
249249
public function getStoredValue()
250250
{
251-
return $this->storedValue;
251+
return $this->storedValue ?? null;
252252
}
253253

254254
/**
@@ -310,7 +310,7 @@ public function resetTracker()
310310
protected function errorLog($message, $context = [])
311311
{
312312
$context = array_merge($this->getLogContext(), $context);
313-
$this->logger->error($message, $context);
313+
//$this->logger->error($message, $context);
314314
}
315315

316316
/**
@@ -323,7 +323,7 @@ protected function errorLog($message, $context = [])
323323
protected function infoLog($message, $context = [])
324324
{
325325
$context = array_merge($this->getLogContext(), $context);
326-
$this->logger->info($message, $context);
326+
//$this->logger->info($message, $context);
327327
}
328328

329329
/**
@@ -337,7 +337,7 @@ protected function debugLog($message, $context = [])
337337
{
338338
if ($this->verbose) {
339339
$context = array_merge($this->getLogContext(), $context);
340-
$this->logger->debug($message, $context);
340+
//$this->logger->debug($message, $context);
341341
}
342342
}
343343

0 commit comments

Comments
 (0)