Skip to content

Conversation

@pbattaglia
Copy link
Collaborator

Added extra logging.

Copy link
Contributor

@alxmrs alxmrs left a comment

Choose a reason for hiding this comment

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

Mostly nits. Thanks for your changes!

Comment on lines 110 to 114
logger.debug(f'Located temporary directories to remove: {cache_dir} [{file_regrid_label!r}].')
shutil.rmtree(cache_dir)
logger.debug(f'Temporary directories removed [{file_regrid_label!r}].')
os.makedirs(cache_dir)
logger.debug(f'Re-building empty temporary directory structure [{file_regrid_label!r}].')
Copy link
Contributor

Choose a reason for hiding this comment

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

I think these are too many debug messages. Won't it pollute the logs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea I'll thin them out after I determine whether we actually even need this code for clearing the temp directories.

Copy link
Contributor

Choose a reason for hiding this comment

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

sgtm

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thinned them out, though this block may be removed.

Copy link
Contributor

@alxmrs alxmrs left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants