-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
Redirect stdout from custom command to the log files #1008
Conversation
For this feature request: #1007 |
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.
Thanks for the PR, I have one minor item I found during review.
core/app.py
Outdated
subprocess.Popen(exename + args, shell=True, cwd=path) | ||
p = subprocess.Popen(exename + args, shell=True, cwd=path, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | ||
output = p.stdout.read() | ||
logging.info("Custom command %s %s:\n %s", exename, args, output) |
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.
All other log entries are single line, I would prefer to keep these entries single line as well.
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.
Updated, thanks
core/app.py
Outdated
subprocess.Popen(dupe_cmd, shell=True) | ||
p = subprocess.Popen(dupe_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | ||
output = p.stdout.read() | ||
logging.info("Custom command %s:\n %s", dupe_cmd, output) |
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.
All other log entries are single line, I would prefer to keep these entries single line as well.
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.
Updated, thanks
Kudos, SonarCloud Quality Gate passed! |
Thanks for the review and merge, out of curiosity, when are builds done? I'm having trouble creating the windows package (python38.dll not found) so was hoping to just wait for the next official build |
Builds currently don't have a set schedule, mainly done based on the features / bugs fixed since last release. The next release has an issue tracking its progress #1002. Currently there are a few more minor items I am considering completing before building the next release. |
No description provided.