-
Notifications
You must be signed in to change notification settings - Fork 11
Log changes #166
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
Log changes #166
Conversation
Codecov Report
@@ Coverage Diff @@
## master #166 +/- ##
==========================================
+ Coverage 88.16% 88.51% +0.35%
==========================================
Files 86 86
Lines 12230 12595 +365
==========================================
+ Hits 10782 11149 +367
+ Misses 1448 1446 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments inline
if raise_if_delete_failed: | ||
raise Exception(error_message) | ||
else: | ||
print(error_message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: is print here a debug statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a logger reference in EnvLayer so print is the way to log if needed
return process if did_process_start else None | ||
|
||
# Clear temp folder since core process launch failed | ||
ext_env_handler.delete_temp_folder_contents() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed? Enable action has already cleanup the content before we get there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed right now since we only have one use of the tmp folder (i.e. save only one file type from core).
But tmp folder can have more use cases in future. In that case, this could be a fail safe method to ensure handler cleans everything if a core launch fails (if things are introduced to the tmp folder while launching core)
No description provided.