Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log info message with UDI instead of ID for unpublished node #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ronaldbarendse
Copy link
Contributor

Because only the UDI is saved to the database, the ID of unpublished/deleted nodes can't be retrieved (the IPublishedContent isn't initialized) and the log is filled with meaningless warnings:

MultiUrlPicker value converter skipped a link as the node has been unpublished/deleted (Id: ),

Besides changing the ID to UDI, I've changed the level from warning to informational, because it's not something that actually goes wrong. The built-in Umbraco.MultiNodeTreePicker2 doesn't even log these (see https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web/PropertyEditors/ValueConverters/MultiNodeTreePickerPropertyConverter.cs). The message itself also doesn't need to repeat the property editor, because the logger name is already RJP.MultiUrlPicker.Models.MultiUrls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant