$file_log->close();
if ($config->userFrameworkLogging) {
+ // should call $config->userSystem->logger($message) here - but I got a situation where userSystem was not an object - not sure why
if ($config->userSystem->is_drupal and function_exists('watchdog')) {
watchdog('civicrm', $message, NULL, WATCHDOG_DEBUG);
}