Skip to content

[Hosting] Hosting output conflicts with logging output. #15060

@javiercn

Description

@javiercn
  • Create a template.
  • Set console logging to debug
  • Run the app a few times.
  • At some point, the Hosting log messages will be incorrectly interleaved with the logging output.
dbugHosting environment: Development
Content root path: C:\work\validation\angularpublishdbg30
: Microsoft.AspNetCore.Hosting.Diagnostics[4]
      Hosting started
Now listening on: https://localhost:5001
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
dbug: Microsoft.AspNetCore.Hosting.Diagnostics[0]
      Loaded hosting startup assembly angularpublishdbg30

We discovered this as we were capturing the console output and looking for Now listening on: messages in the templates tests, and they were hanging when we couldn't find the message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-hostingIncludes Hostingarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions