You are here

protected function ApigeeEdgeKernelTestTrait::logException in Apigee Edge 8

Log the given exception using the class short name as type.

Parameters

\Exception $exception: Exception to log.

string $suffix: Suffix for type string.

File

tests/src/Kernel/ApigeeEdgeKernelTestTrait.php, line 36

Class

ApigeeEdgeKernelTestTrait
Provides common functionality for the Apigee Edge kernel test classes.

Namespace

Drupal\Tests\apigee_edge\Kernel

Code

protected function logException(\Exception $exception, string $suffix = '') {
  $ro = new \ReflectionObject($this);
  watchdog_exception("{$ro->getShortName()}{$suffix}", $exception);
}