function DrupalBoot6::add_logger

8.0.x DrupalBoot6.php DrupalBoot6::add_logger()
7.x DrupalBoot6.php DrupalBoot6::add_logger()
master DrupalBoot6.php DrupalBoot6::add_logger()

File

lib/Drush/Boot/DrupalBoot6.php, line 42
This file is required for recognizing a D6 root and showing deprecation error.

Namespace

Drush\Boot

Class

DrupalBoot6

Code

function add_logger() {
  // If needed, prod module_implements() to recognize our system_watchdog() implementation.
  $dogs = drush_module_implements('watchdog');
  if (!in_array('system', $dogs)) {
    // Note that this resets module_implements cache.
    drush_module_implements('watchdog', FALSE, TRUE);
  }
}