Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
HaikAsatryan committed Aug 26, 2024
1 parent fc6df13 commit 3dfd0db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/Pandatech.CleanArchitecture.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
var app = builder.Build();

app.UseStaticFiles();
app.UseResponseCrafter()
app
.UseRequestResponseLogging()
.UseResponseCrafter()
.UserInfrastructureLayer()
.UseCors()
.UseSwagger(builder.Configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,8 @@ private static bool ShouldExcludeHangfireDashboardLogs(this LogEvent logEvent)

private static bool ShouldExcludeOutboxDbCommandLogs(this LogEvent logEvent)
{
return logEvent
.RenderMessage()
.StartsWith("Executed DbCommand") &&
(logEvent
.RenderMessage()
.Contains("FROM outbox_messages") ||
logEvent
.RenderMessage()
.Contains("FROM OutboxMessages"));
var message = logEvent.RenderMessage();
return message.Contains("outbox_messages") || message.Contains("OutboxMessages");
}

private static bool ShouldExcludeSwaggerLogs(this LogEvent logEvent)
Expand Down

0 comments on commit 3dfd0db

Please sign in to comment.