Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Debug log slow down website

$
0
0

Hello, I have converted a web project from PHP and while the logic is identical the execution in C# is very slow. But I assume that the SQL Outputs by Visual Studio are the issue but I am unable to disable them. How can i disable it or simply bypass temporarily? When I select "Release" nothing changes. I currently build locally to ILS Express.

I am using MVC6. In My Startup I have this:

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, ApplicationDbContext context)
{
	loggerFactory.AddConsole(Configuration.GetSection("Logging"));
	loggerFactory.AddDebug();

I read somewhere that the following should work but Log no longer is available:

context.Database.log = null;

Viewing all articles
Browse latest Browse all 9386

Trending Articles