Merge remote-tracking branch 'origin/v12/dev' into v14/dev
# Conflicts: # src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs # src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs # src/Umbraco.Web.BackOffice/Controllers/MediaController.cs # src/Umbraco.Web.BackOffice/Filters/FileUploadCleanupFilterAttribute.cs
This commit is contained in:
@@ -137,9 +137,12 @@ public class DefaultUrlProvider : IUrlProvider
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(route))
|
||||
{
|
||||
_logger.LogDebug(
|
||||
if (_logger.IsEnabled(Microsoft.Extensions.Logging.LogLevel.Debug))
|
||||
{
|
||||
_logger.LogDebug(
|
||||
"Couldn't find any page with nodeId={NodeId}. This is most likely caused by the page not being published.",
|
||||
id);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -250,9 +250,12 @@ public static class UrlProviderExtensions
|
||||
|
||||
if (!pcr.HasPublishedContent())
|
||||
{
|
||||
const string logMsg = nameof(DetectCollisionAsync) +
|
||||
if (logger.IsEnabled(Microsoft.Extensions.Logging.LogLevel.Debug))
|
||||
{
|
||||
const string logMsg = nameof(DetectCollisionAsync) +
|
||||
" did not resolve a content item for original url: {Url}, translated to {TranslatedUrl} and culture: {Culture}";
|
||||
logger.LogDebug(logMsg, url, uri, culture);
|
||||
logger.LogDebug(logMsg, url, uri, culture);
|
||||
}
|
||||
|
||||
var urlInfo = UrlInfo.Message(textService.Localize("content", "routeErrorCannotRoute"), culture);
|
||||
return Attempt.Succeed(urlInfo);
|
||||
|
||||
Reference in New Issue
Block a user