Skip to content
Snippets Groups Projects
Commit 40052b63 authored by Angie Byron's avatar Angie Byron
Browse files

#549182 by catch: Move logging and errors to admin/config/development.

parent c730d8c1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -50,7 +50,7 @@ class DBLogTestCase extends DrupalWebTestCase { ...@@ -50,7 +50,7 @@ class DBLogTestCase extends DrupalWebTestCase {
// Change the dblog row limit. // Change the dblog row limit.
$edit = array(); $edit = array();
$edit['dblog_row_limit'] = $row_limit; $edit['dblog_row_limit'] = $row_limit;
$this->drupalPost('admin/settings/logging', $edit, t('Save configuration')); $this->drupalPost('admin/config/development/logging', $edit, t('Save configuration'));
$this->assertResponse(200); $this->assertResponse(200);
// Check row limit variable. // Check row limit variable.
......
...@@ -29,10 +29,10 @@ class SyslogTestCase extends DrupalWebTestCase { ...@@ -29,10 +29,10 @@ class SyslogTestCase extends DrupalWebTestCase {
else { else {
$edit['syslog_facility'] = LOG_USER; $edit['syslog_facility'] = LOG_USER;
} }
$this->drupalPost('admin/settings/logging', $edit, t('Save configuration')); $this->drupalPost('admin/config/development/logging', $edit, t('Save configuration'));
$this->assertText(t('The configuration options have been saved.')); $this->assertText(t('The configuration options have been saved.'));
$this->drupalGet('admin/settings/logging'); $this->drupalGet('admin/config/development/logging');
if ($this->parse()) { if ($this->parse()) {
$field = $this->xpath('//option[@value="' . $edit['syslog_facility'] . '"]'); // Should be one field. $field = $this->xpath('//option[@value="' . $edit['syslog_facility'] . '"]'); // Should be one field.
$this->assertTrue($field[0]['selected'] == 'selected', t('Facility value saved.')); $this->assertTrue($field[0]['selected'] == 'selected', t('Facility value saved.'));
......
...@@ -706,19 +706,13 @@ function system_menu() { ...@@ -706,19 +706,13 @@ function system_menu() {
'page arguments' => array('system_site_information_settings'), 'page arguments' => array('system_site_information_settings'),
'access arguments' => array('administer site configuration'), 'access arguments' => array('administer site configuration'),
); );
$items['admin/settings/logging'] = array( $items['admin/config/development/logging'] = array(
'title' => 'Logging and errors', 'title' => 'Logging and errors',
'description' => "Settings for logging and alerts modules. Various modules can route Drupal's system events to different destinations, such as syslog, database, email, etc.", 'description' => "Settings for logging and alerts modules. Various modules can route Drupal's system events to different destinations, such as syslog, database, email, etc.",
'page callback' => 'drupal_get_form', 'page callback' => 'drupal_get_form',
'page arguments' => array('system_logging_settings'), 'page arguments' => array('system_logging_settings'),
'access arguments' => array('administer site configuration'), 'access arguments' => array('administer site configuration'),
); );
$items['admin/settings/logging/settings'] = array(
'title' => 'Settings',
'access arguments' => array('administer site configuration'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items['admin/settings/file-system'] = array( $items['admin/settings/file-system'] = array(
'title' => 'File system', 'title' => 'File system',
'description' => 'Tell Drupal where to store uploaded files and how they are accessed.', 'description' => 'Tell Drupal where to store uploaded files and how they are accessed.',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment