Apply suggestions from code review of branch Increased-linting
Co-authored-by: Beth Probert <beth_probert@outlook.com>
This commit is contained in:
parent
b4e28e232e
commit
b9ca8b3094
5 changed files with 5 additions and 4 deletions
|
|
@ -34,6 +34,7 @@ def configure_logging(log_folder: str) -> None:
|
|||
root_logger = logging.getLogger()
|
||||
root_logger.setLevel(logging.INFO)
|
||||
# Explicitly make OFM_LOG_FILE a global so it can be updated based on log settings
|
||||
# This requires silencing PLW0603 which disallows globals.
|
||||
global OFM_LOG_FILE # noqa: PLW0603
|
||||
OFM_LOG_FILE = os.path.join(log_folder, "openflexure_microscope.log")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue