Files
lorry li dc1f66105c Suppress the warning message in WebTests.
#jira UE-206338
[REVIEW] [at]michael.atchison [at]stephen.ma [at]rafa.lecina [at]michael.kirzinger
#rb michael.atchison, Rafa.Lecina, stephen.ma

[CL 31348674 by lorry li in ue5-main branch]
2024-02-09 13:41:36 -05: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;
}
}
}