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

Enhance logging output #65

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

NRHelmi
Copy link
Contributor

@NRHelmi NRHelmi commented Feb 8, 2023

No description provided.

@NRHelmi NRHelmi requested a review from torkins February 10, 2023 13:24
@NRHelmi NRHelmi marked this pull request as ready for review February 10, 2023 13:24
Copy link
Collaborator

@torkins torkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometim

var userAgent = response.RequestMessage.Headers.TryGetValues("User-Agent", out var values) ? values.FirstOrDefault() : string.Empty;
var requestId = response.Headers.TryGetValues("X-Request-ID", out values) ? values.FirstOrDefault() : string.Empty;

_logger.LogDebug($"{response.RequestMessage.Method} HTTP/{response.Version} {contentType}" +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes the URI is "***" in the docs.. find out why and fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked that, github workflow automatically hides potential credentials
locally it outputs

POST HTTP/1.1 application/json https://login.relationalai.com/oauth/token 200 rai-sdk-csharp/0.9.12-alpha  

RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
RelationalAI/Client.cs Outdated Show resolved Hide resolved
@NRHelmi NRHelmi requested a review from torkins February 16, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants