microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
291 stars 132 forks source link

The log-streaming session has ended. Please reconnect to continue streaming logs. #4044

Open doggy8088 opened 5 months ago

doggy8088 commented 5 months ago

I'm connect to Log Stream.

image

When the output console appear this line below:

2024-03-18T14:05:58  The log-streaming session has ended. Please reconnect to continue streaming logs.

Then, it's stopped. I tried to reconnect again.

image

image

It shows:

The log-streaming service for "linebot-s2t" is already active.

I don't know how to reconnect again.

nturinski commented 5 months ago

Hi @doggy8088

Sorry for this issue. I think if you right-click the app, you should see this menu: image

If you click "Stop Streaming Logs", our extension should recognize that you are no longer connected and you can try to reconnect. I think this is happening because the service is automatically disconnecting you without the extension knowing.

doggy8088 commented 5 months ago

@nturinski Wow, it's there! I think that's an UI/UX issue now. 😅

Here is my suggestion:

Step 1: I click on Connect to Log Stream.

image

Step 2: Change Connect to Log Stream to Stop Streaming Logs and change it's logo to square icon.