question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add protocol to "Now listening on" logged at startup

See original GitHub issue

On startup ASP.NET Core will log the addresses it is listening on. http vs https gives insight into whether the endpoint is secured with TLS. However there is no way to understand what protocols each endpoint supports. It would be useful when debugging connection errors to have an endpoint’s protocol logged.

For example:

Now listening on https://localhost:5000 (HTTP/1.1, HTTP/2)
Now listening on http://localhost:5001 (HTTP/2)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
analogrelaycommented, Oct 23, 2019

We’ll keep this around to talk about during Bedrock work (cc @davidfowl).

1reaction
Tratchercommented, Oct 23, 2019

This isn’t possible with the current infrastructure. Hosting makes these logs and it only has access to IServerAddresses containing a simple list of urls.

To do this we’d have to redesign it so that the servers issued these logs. Even then it would only work on Kestrel. IIS and HttpSys don’t have access to this information at startup, only per request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing Kestrel binding warning - asp.net core
When using Kestrel in an ASP.NET Core 2.1 project and specifying a binding in UseKestrel() , a message is logged at warning level:...
Read more >
Configure endpoints for the ASP.NET Core Kestrel web ...
Learn about configuring endpoints with Kestrel, the cross-platform web server for ASP.NET Core.
Read more >
Creating Launch Daemons and Agents
Explains how to write background processes that perform work on behalf of applications or serve content over the network.
Read more >
WebSockets tutorial: How to go real-time with Node and ...
Implement the WebSocket protocol in Node.js and React, which offers a two-way communication mechanism between client and server.
Read more >
Ultimate Running and debugging Node.js - IntelliJ IDEA
js run/debug configuration as described above and go to the Logs tab. Click the Add button next to the Log files to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found