Skip to content
Snippets Groups Projects
Commit cab8045b authored by Jon Pugh's avatar Jon Pugh
Browse files

Issue #3098258: Send the trace to debug drush logs, not error. Do the same for drupal 8 and 9.

parent 054721f8
Branches
Tags
No related merge requests found
...@@ -147,6 +147,8 @@ function install_main() { ...@@ -147,6 +147,8 @@ function install_main() {
} }
catch (Exception $e) { catch (Exception $e) {
drush_set_error('DRUPAL_INSTALL_FAILED'); drush_set_error('DRUPAL_INSTALL_FAILED');
drush_log('Site installation caused an exception: ' . $e->getMessage(), 'error');
drush_log("Trace: \n" . $e->getTraceAsString(), 'debug');
dlm($e); dlm($e);
} }
_provision_drupal_create_directories(); _provision_drupal_create_directories();
......
...@@ -146,7 +146,8 @@ function install_main() { ...@@ -146,7 +146,8 @@ function install_main() {
install_drupal($class_loader, $settings); install_drupal($class_loader, $settings);
} }
catch (Exception $e) { catch (Exception $e) {
drush_set_error('DRUPAL_INSTALL_FAILED'); drush_log('Site installation caused an exception: ' . $e->getMessage(), 'error');
drush_log("Trace: \n" . $e->getTraceAsString(), 'debug');
dlm($e); dlm($e);
} }
_provision_drupal_create_directories(); _provision_drupal_create_directories();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment