Problem/Motivation

Currently, messages are logged with a severity level of "notice" when creating or updating menu through the UI. These activities are normal functionality of the menu_ui module and should be logged with a severity level of "info" if logging at all.

Steps to reproduce

Log in as a user with permission to administer menu and menu links.
Turn on DBLog module.
Create or update a menu.
Check the DBLog report, note that normal activity of creating or updating a menu is logged with a severity level of "notice".

Proposed resolution

Downgrade logged messages reflecting normal functions of the menu_ui module from "notice" to "info", as per the Syslog protocol, messages that confirm that a program is working as expected should be logged as Informational messages.

Issue fork drupal-3412152

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lhridley created an issue. See original summary.

lisa.rae’s picture

lisa.rae’s picture

Assigned: lisa.rae » Unassigned
Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Caused a number of test failures.

arisen’s picture

Title: Downgrade logged messages for menu item changes from notice to info » Downgrade logged messages for menu changes from notice to info
Issue summary: View changes

arisen’s picture

Status: Needs work » Needs review

Updated the task summary as the issue is related to Menu not Menu Items.

Jenkins pipeline seems to throw unrelated issues. Added MR.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new961 bytes

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Version: 10.2.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Priority: Normal » Minor
Status: Needs work » Needs review

Minor improvement, think it's small enough to not need tests.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

dcam’s picture

Status: Needs review » Postponed (maintainer needs more info)
Issue tags: -logging, -Improved error messages

I looked at this issue. I don't agree with the change based on what I found. My brief tour of Core showed that bundle-level changes are logged as notice, not info. I'm not sure how bundles work within the menu system, but there's another way to look at it. Actions that alter the configuration of a website are logged as notice. That's true of creating menus. IMO, anything that alters configuration is a significant event because they represent something that needs to be checked into version control lest the change be lost.

I'm setting the status to Postponed for more information. Please feel free to respond with additional rationale for making this change. Otherwise, the issue may be closed after some time with no response.

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Since there's been no follow up going to close out.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.