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

[Identity] Change base type of IdentityClientOptions to PipelineOptions #5711

Merged
merged 3 commits into from
Oct 23, 2019

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Oct 22, 2019

This change updates IdentityClientOptions to be based on PipelineOptions instead of ServiceClientOptions. The change went very smoothly; the majority of changes were adding expected trace spans for core-http since the tracingPolicy wasn't being added to the pipeline in tests before this commit.

@daviwil daviwil requested a review from sophiajt as a code owner October 22, 2019 16:18
@ramya-rao-a
Copy link
Contributor

@daviwil You mentioned that there is a node vs browser difference you were worried about here. Can you elaborate? Otherwise this change looks good to me

@daviwil
Copy link
Contributor Author

daviwil commented Oct 23, 2019

What I'm seeing is that in the Node.js tests, log messages are only being written when Identity's logger instance is called directly. Any log messages from logPolicy are not written out. In the browser tests, I see logs from both Identity's logger and the logPolicy.

The test code uses setLogLevel to change the log level to verbose before running code to verify log messages were written. @chradek and I observed yesterday that calling setLogLevel After the logger instance was already created actually didn't cause the log level to be propagated to loggers so the expected log messages were not being written out. I think there may be a bug in @azure/logger that we need to investigate; I don't think it has anything to do with this PR.

@ramya-rao-a
Copy link
Contributor

@daviwil In that case, can we log an issue for the logger?

@daviwil
Copy link
Contributor Author

daviwil commented Oct 23, 2019

Yep, I'll file the issue for logger.

@daviwil
Copy link
Contributor Author

daviwil commented Oct 23, 2019

Approved by adpship.

@daviwil daviwil merged commit 2ec0b00 into Azure:master Oct 23, 2019
@daviwil daviwil deleted the identity-pipelineoptions branch October 23, 2019 18:57
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.

4 participants