Skip to content

feat: improved used of logging library#687

Merged
mrava87 merged 2 commits into
PyLops:devfrom
mrava87:feat-logging
Aug 10, 2025
Merged

feat: improved used of logging library#687
mrava87 merged 2 commits into
PyLops:devfrom
mrava87:feat-logging

Conversation

@mrava87
Copy link
Copy Markdown
Collaborator

@mrava87 mrava87 commented Jul 21, 2025

This PR is aimed at improving the use of the logging library.

The most notable change is the removal of all logging.basicConfig (which should be left to the user application) and the use of logger = logging.getLogger(__name__) instead.

Some of the logging.error messages are also removed (as accompanied by a raise exception) and some logging.warning converted to warnings.warn based on the definition of how these two ways of raising a warning compare in https://docs.python.org/3/howto/logging.html)

@mrava87
Copy link
Copy Markdown
Collaborator Author

mrava87 commented Jul 27, 2025

@cako not sure how familiar you are with the logging library... as I was learning more I realized our use wasn't that great so I decided to go through a full re-style. Let me know if you have any feedback before I can go ahead and merge this 😄

@mrava87 mrava87 merged commit cca7184 into PyLops:dev Aug 10, 2025
14 checks passed
@mrava87 mrava87 deleted the feat-logging branch August 10, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant