Skip to content

Conversation

@JanCaha
Copy link
Collaborator

@JanCaha JanCaha commented May 9, 2023

windows pyinstaller functions + logging

Fixes #99

@JanCaha JanCaha mentioned this pull request May 10, 2023
Copy link
Contributor

@wonder-sk wonder-sk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a follow up PR:

  • do not create LOGGER global object - simply use the root logging object everywhere, simplifying the code (just calling e.g. logging.info(...) or logging.error(...))
  • set up root logger with https://docs.python.org/3/library/logging.handlers.html#logging.StreamHandler so that we always get stderr output (and no need for separate print() calls, and no need for handle_message() function, probably also no need for handle_error() function)
  • switch from print() to logging in dbsync.py as well

@wonder-sk wonder-sk merged commit 2039453 into master May 10, 2023
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.

Create a standalone executable

3 participants