Skip to content

Commit

Permalink
Revert "Update Exception Logging (#6671)"
Browse files Browse the repository at this point in the history
This reverts commit be8d5b4.

Generating a version of the proxy WITH the logging fixes from #6812 but
without the fixes to stderr output.
  • Loading branch information
scbedd committed Aug 21, 2023
1 parent 45abf9b commit 23f2721
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
using System.Linq;
using System.CommandLine;
using Azure.Sdk.Tools.TestProxy.CommandOptions;
using Microsoft.AspNetCore.Identity;
using Microsoft.CodeAnalysis.VisualBasic.Syntax;
using System.Text.Json;
using Microsoft.Extensions.Logging.Console;
using Microsoft.Extensions.Options;

namespace Azure.Sdk.Tools.TestProxy
{
Expand Down Expand Up @@ -147,12 +147,9 @@ private static void StartServer(StartOptions startOptions)
{
loggingBuilder.ClearProviders();
loggingBuilder.AddConfiguration(hostBuilder.Configuration.GetSection("Logging"));
loggingBuilder.AddConsole(options =>
loggingBuilder.AddSimpleConsole(formatterOptions =>
{
options.LogToStandardErrorThreshold = LogLevel.Error;
}).AddSimpleConsole(options =>
{
options.TimestampFormat = "[HH:mm:ss] ";
formatterOptions.TimestampFormat = "[HH:mm:ss] ";
});
loggingBuilder.AddDebug();
loggingBuilder.AddEventSourceLogger();
Expand Down

0 comments on commit 23f2721

Please sign in to comment.