Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chore] Azure Functions API: switch console. to context. #405

Closed
dfberry opened this issue Nov 13, 2023 · 4 comments
Closed

[Chore] Azure Functions API: switch console. to context. #405

dfberry opened this issue Nov 13, 2023 · 4 comments
Assignees

Comments

@dfberry
Copy link
Contributor

dfberry commented Nov 13, 2023

In Azure Functions, console.x output is only available when streaming log or at the Function app level. The context.x output is available at the API level within the Function app.

There are several console.x calls in the startup code which would only be helpful in active debugging. Switch to using context.x which means it needs to be passed down from the api to the startup functionality. It could also, potentially, be rolled into the logger module which handles output to applicationInsights.

@glaucia86
Copy link
Contributor

@dfberry do you mean the api-v4 the new api?

@dfberry
Copy link
Contributor Author

dfberry commented Nov 19, 2023

@glaucia86 Its true for either version but no need to update the v3. Once the updates for v4 is merged, the api-v4 becomes api. So only func v4 pm needs to be updated.

@glaucia86
Copy link
Contributor

glaucia86 commented Nov 20, 2023

I can take this one, once this PR is merged: #404

@glaucia86 glaucia86 self-assigned this Nov 20, 2023
@anfibiacreativa
Copy link
Member

Closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants