Files
2025-05-18 13:04:45 +08:00

24 lines
544 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using EpicGames.Core;
using Microsoft.Extensions.Logging;
using System.Text.RegularExpressions;
#nullable enable
namespace AutomationUtils.Matchers
{
class UnsecureHttpMatcher : ILogEventMatcher
{
public LogEventMatch? Match(ILogCursor cursor)
{
if (cursor.Contains("WARNING: Insecure HTTP request"))
{
return new LogEventBuilder(cursor).ToMatch(LogEventPriority.Normal, LogLevel.Information, KnownLogEvents.Systemic_SignToolTimeStampServer);
}
return null;
}
}
}