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

[QUERY] Is there a way I can disable logs from the AuthenticationAuthority class #8501

Closed
Shabirmean opened this issue Feb 26, 2020 · 7 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. Managed Identity Mgmt This issue is related to a management-plane library. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@Shabirmean
Copy link

Query/Question
I am consuming the Azure SDK for a project I am working on. However, I have set the LogLevel in the Azure controller to NONE.

Azure.configure().withLogLevel(LogLevel.NONE).authenticate(credentials);

But still get a bunch of a logs from the class c.m.a.adal4j.AuthenticationAuthority

2020-02-26 15:41:46,991 [pool-1-thread-37] INFO  c.m.a.adal4j.AuthenticationAuthority - [Correlation ID: 72e7c78f-67b6-4a95-b164-9f366cc5db91] Instance discovery was successful

I want to know how can I block these logs.

Why is this not a Bug or a feature Request?

  • Because I am not sure if there is some way in Azure already that enables me to do this and its just that I am unaware of it.

Setup (please complete the following information if applicable):

  • OS: MacOS
  • IDE : IntelliJ
  • 1.31.0

Information Checklist

  • [ ✅ ] Query Added
  • [ ✅ ] Setup information Added
@joshfree joshfree added customer-reported Issues that are reported by GitHub users external to the Azure organization. Managed Identity Mgmt This issue is related to a management-plane library. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Feb 27, 2020
@joshfree
Copy link
Member

Thanks for the question @Shabirmean. @yaohaizh can you please follow up?

/cc @jianghaolu for any historical context on adal4j

@yaohaizh
Copy link
Contributor

@jianghaolu does the adal4j log separate from the SDK logging? Can we control from the client runtime authentication side? Thanks

@Shabirmean
Copy link
Author

Hi,

Is there any updates on this?

@weidongxu-microsoft
Copy link
Member

This is not SDK feature. It only depends on the logging SDK and its config.

E.g. for slf4j simple, one can change log level

System.setProperty(org.slf4j.impl.SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "WARN");

@FireDrunk
Copy link

My solution for this issue was:
logging.level.com.microsoft.aad.adal4j.AuthenticationAuthority=WARN
in application.properties

@weidongxu-microsoft weidongxu-microsoft added the issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. label Jul 13, 2021
@ghost
Copy link

ghost commented Jul 13, 2021

Hi @Shabirmean. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

@ghost
Copy link

ghost commented Jul 20, 2021

Hi @Shabirmean, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

@ghost ghost closed this as completed Jul 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. Managed Identity Mgmt This issue is related to a management-plane library. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants