Skip to content

Commit 5764f2a

Browse files
Enable directory browsing for trace.axd only in development environment (#1128)
* Enable browse directory for trace.axd only in development environment * Enable trace.axd for all trace levels other than Off.
1 parent 59c93cc commit 5764f2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ public void Configure(IApplicationBuilder app, Microsoft.AspNetCore.Hosting.IHos
513513
{
514514
endpoints.MapControllers();
515515
});
516-
if (log.IsDebugEnabled)
516+
517+
if (log.IsCriticalEnabled && env.IsDevelopment())
517518
{
518519
try
519520
{

0 commit comments

Comments
 (0)