You are here

protected function SchemaMigrator::logError in Schema 8

2 calls to SchemaMigrator::logError()
SchemaMigrator::recreatePrimaryKey in src/Migration/SchemaMigrator.php
SchemaMigrator::removeExtraColumns in src/Migration/SchemaMigrator.php

File

src/Migration/SchemaMigrator.php, line 182
Contains Drupal\schema\Migration\SchemaMigrator.

Class

SchemaMigrator
Modifies the database schema to match the declared schema.

Namespace

Drupal\schema\Migration

Code

protected function logError($message, $context) {
  if (function_exists('drush_log')) {
    drush_log($this
      ->logMessageInterpolate($message, $context), 'error');
  }
  $this->logger
    ->error($message, $context);
}