Skip to content

loggers always active, take up space, prevent deletion of folders - can we have them not run by default? #2442

@stitova-idm

Description

@stitova-idm

Running simulations with emodpy on comps creates two logs. One for idmtools the other for comps

Image

When I'm running simulation tests, these loggers prevent deletion of the temporary folder that was created with the test with:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\GitHub\emodpy-old\tests\outputs\failed_tests\test_report_run_it_all_on_comps_are_files_generated\COMPS_log.log'

(I had a similar issue with idmtools, but have figured out how to explicitly close that logger and comps logger is proving harder to catch).

I'm not sure why we need debug logging at all times? understand if there's an issue and you want more information, so you add a logging=True parameter somewhere, but, in general this logging isn't helpful for customers:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions