Skip to content

Handling of logging affects logging external to package #269

Closed
@Tonyynot14

Description

@Tonyynot14

Description
Logging setup if not enabled disables information logging for all other loggers. This affects scripts that use this package

Reproduction
Import this package and setup your own logger with a custom name. Then try to log information alerts after initialize the ziaclient

Expected behavior
Logging inside of the module to not affect logging outside of it. Logging for the package should be able to be completely turned off.

Is it a regression?
No

Other Information

  • Windows

Additional context
The is mainly related to how logging is being handled in the script. This can most likely be resolved by setting the level desired for the sdk logging to the level needed and not

logging.disable(logging.INFO) # This affects named loggers as well 

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

🚀 Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions