GithubHelp home page GithubHelp logo

Comments (2)

mschmidt98 avatar mschmidt98 commented on May 19, 2024 1

Hi again,
Could have thought about using the MS Log filter myself.

We are just switching to ASP.NET Core and I'm amazed every day by what this framework brings out of the box.

Anyway, that did the trick. Many thanks for the quick response :)

from middleware.

khellang avatar khellang commented on May 19, 2024

Is it possible, to configure/disable this "response already started" message, or do you have any other workaround?

There's no way to configure it outside ASP.NET Core's logging configuration, no.

If you're not interesting in seeing this, you probably want to just filter the message away, using ASP.NET Core's Log Filtering. If you configure Hellang.Middleware.ProblemDetails to have a minimum log level of Error, you should be able to get rid of that message, while still keeping the rest of the logging (all remaining logs are errors).

I should probably look into changing the logging level of that message to something less severe. I guess my thinking at the time was to have this middleware handle every single error state and warn the developer when that's not the case, but as it's becoming more and more common for MVC etc. to handle these, I think it makes sense to drop the level down a notch or two.

from middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.