You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2020/10/29 21:44:00 UTC

[jira] [Commented] (IMPALA-10304) Pytest logging is not using the expected INFO log level

    [ https://issues.apache.org/jira/browse/IMPALA-10304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17223222#comment-17223222 ] 

Joe McDonnell commented on IMPALA-10304:
----------------------------------------

The problem is that logging.basicConfig() is only effective the first time it is called. One of the libraries that we import calls it, which makes this call ineffective. I'm testing a fix.

> Pytest logging is not using the expected INFO log level
> -------------------------------------------------------
>
>                 Key: IMPALA-10304
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10304
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 4.0
>            Reporter: Joe McDonnell
>            Assignee: Joe McDonnell
>            Priority: Major
>
> In IMPALA-10302, we noticed that query_test/test_scanners_fuzz.py was not logging the INFO statements that are useful for debugging. Testing indicated that it would only log WARNING or above. There was a specific fix for that test, but this indicates a broader issue for any other tests that do logging at the INFO level.
> We have this code in our tests/conftest.py:
> {noformat}
> def configure_logging():
>   # Use a "--" since most of our tests output SQL commands, and it's nice to
>   # be able to copy-paste directly from the test output back into a shell to
>   # try to reproduce a failure.
>   logging.basicConfig(level=logging.INFO, format=LOG_FORMAT){noformat}
> This is setting the logging level to INFO and using a specific log format, so it is unexpected that we are only logging at WARNING and above. We need to figure out what changed and why it isn't respecting the logging level from conftest.py. This impacts our ability to debug test failures.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org