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

Setting proj_log_level(0, PJ_LOG_NONE) does not suppress logging output #2526

Closed
frewsxcv opened this issue Feb 11, 2021 · 0 comments
Closed
Labels

Comments

@frewsxcv
Copy link

Example of problem

#include <proj.h>
#include <stdio.h>

int main() {
    proj_log_level(0, PJ_LOG_NONE);
    PJ* pj_point = proj_create(0, "a b c d e f g h i j");
    return 0;
}

Problem description

I would expect the preceding code not to print anything since I set PJ_LOG_NONE as the log level, but when you run it, it prints:

proj_create: unrecognized format / unknown name

Expected Output

No output

Environment Information

  • PROJ 7.2.1
  • macOS
  • AArch64

Installation method

Installed PROJ from source

@frewsxcv frewsxcv added the bug label Feb 11, 2021
rouault added a commit that referenced this issue Feb 12, 2021
C API: avoid error messages to be emitted in PJ_LOG_NONE log level (fixes #2526)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant