Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"import irods" shouldn't interfere in logging by applications or other modules  #660

@d-w-moore

Description

@d-w-moore

This line is very invasive to logging that the application (or other imported modules / libraries) might want to do:

logging.basicConfig()

basicConfig is meant to be called only once within an application, and it probably shouldn't be here.

For one thing, it means you cannot do this and see logging output:

import logging
import irods
logging.basicConfig(level = logging.DEBUG)
logging.debug("hello!")

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions