Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create output_folder using os.makedirs() #124

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

krehm
Copy link
Contributor

@krehm krehm commented Dec 8, 2023

Remove get_storage() and create_namespace() calls that were used to create output_folder, those calls only work if the storage class happens to be posix. If the class is S3, then storage_root is a bucket and create_namespace() is a no-op, so the output_folder directory does not get created. Since the logs are all posix-based, use os.makedirs() to create output_folder. Also move the basicConfig() call to the point after where the previous dlio.log file has been deleted so that log messages don't go to an unlinked file. Move a message that was issued before the prior log was deleted to a spot after where the new log has been configured.

Remove get_storage() and create_namespace() calls that were used to
create output_folder, those calls only work if the storage class
happens to be posix.  If the class is S3, then storage_root is a
bucket and create_namespace() is a no-op, so the output_folder directory
does not get created.  Since the logs are all posix-based, use
os.makedirs() to create output_folder. Also move the basicConfig()
call to the point after where the previous dlio.log file has been
deleted so that log messages don't go to an unlinked file.  Move a
message that was issued before the prior log was deleted to a spot
after where the new log has been configured.
@zhenghh04 zhenghh04 merged commit 5dd23af into argonne-lcf:main Dec 8, 2023
12 checks passed
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