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

[EXAMPLES] console_debug not working in otlp exporter examples. #1847

Closed
marcalff opened this issue Dec 7, 2022 · 0 comments · Fixed by #1848
Closed

[EXAMPLES] console_debug not working in otlp exporter examples. #1847

marcalff opened this issue Dec 7, 2022 · 0 comments · Fixed by #1848
Assignees
Labels
bug Something isn't working

Comments

@marcalff
Copy link
Member

marcalff commented Dec 7, 2022

In file examples/otlp/http_main.cc:

    opts.url = argv[1];
    if (argc > 2)
    { 
      std::string debug  = argv[2]; 
      opts.console_debug = debug != "" && debug != "0" && debug != "no";
    }

Exporter options console_debug can be set optionally from the command line, which is a nice debug feature.

The problem is that this has no effect, because GlobalLogHandler::SetLogLevel() is never set to DEBUG.

Console logs are never printed.

@marcalff marcalff added the bug Something isn't working label Dec 7, 2022
@marcalff marcalff self-assigned this Dec 7, 2022
marcalff added a commit to marcalff/opentelemetry-cpp that referenced this issue Dec 7, 2022
Fixed console debug logs for otlp exporters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant