Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v8/8.18' into v8/8.18
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmania committed Feb 27, 2024
2 parents ec52b54 + 241a0d8 commit fa4fe47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Logging/Viewer/LogViewerSourceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public int GetNumberOfErrors(LogTimePeriod logTimePeriod)
/// <returns></returns>
public string GetLogLevel()
{
var logLevel = Enum.GetValues(typeof(LogEventLevel)).Cast<LogEventLevel>().Where(Log.Logger.IsEnabled)?.Min() ?? null;
var logLevel = Enum.GetValues(typeof(LogEventLevel)).Cast<LogEventLevel>().Where(Log.Logger.IsEnabled).DefaultIfEmpty(LogEventLevel.Information)?.Min() ?? null;
return logLevel?.ToString() ?? "";
}

Expand Down
11 changes: 10 additions & 1 deletion src/Umbraco.Web/PropertyEditors/MarkdownPropertyEditor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Umbraco.Core;
using System;
using Umbraco.Core;
using Umbraco.Core.Composing;
using Umbraco.Core.Logging;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Security;
Expand All @@ -19,6 +21,13 @@ public class MarkdownPropertyEditor : DataEditor
{
private readonly IMarkdownSanitizer _markdownSanitizer;

[Obsolete("Use non obsolete constructor")]
public MarkdownPropertyEditor(ILogger logger)
: this(logger, Current.Factory.GetInstance<IMarkdownSanitizer>())
{

}

/// <summary>
/// Initializes a new instance of the <see cref="MarkdownPropertyEditor"/> class.
/// </summary>
Expand Down

0 comments on commit fa4fe47

Please sign in to comment.