-
Notifications
You must be signed in to change notification settings - Fork 215
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
Pyproj 3+ logs PROJ_ERROR at debug level #822
Comments
This is actually something that has been there for a while, but isn't really a bug. It is related to the design for how things work. The method To prevent having the error message: Option 1: Disable logger or change level: pyproj_logger = logging.getLogger("pyproj")
pyproj_logger.disabled = True
# or
pyproj_logger = logging.getLogger("pyproj")
pyproj_logger.setLevel(logging.WARN) Option 2: Modify
Lines 2918 to 2926 in 9669f62
2. Modify sub_crs_list to return [] if it is not a compound CRS using the is_compound property.
|
Do you see an And I should have figured this has been here for a while. I only started looking at the actual logs for my stuff. 🤦 |
I think that it would be useful to have. Side note: #696 is why you see the error in the logs with pyproj 3+ and didn't see it with previous versions. |
Code Sample, a copy-pastable example if possible
A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you:
http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports
Note: The message doesn't show up with the creation of CRS, only
is_geographic
. There are likely other cases that cause the message but this was the simplest I could find.Problem description
I use pyproj in a lot of applications that include logging. I often write a log file with DEBUG level logging. Starting with pyproj 3, I'm seeing a lot of the following error messages that are logged as DEBUG messages and are filling up my log file. I'm hoping for more information on what these mean, if they are meant to be logged, and what the right course of action might be to reducing them.
Expected Output
No log message or at least not a DEBUG message with a PROJ_ERROR.
Environment Information
pyproj -v
Installation method
Conda environment information (if you installed with conda):
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: