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

Redirect stdout from custom command to the log files #1008

Merged
merged 3 commits into from
Jun 14, 2022
Merged

Redirect stdout from custom command to the log files #1008

merged 3 commits into from
Jun 14, 2022

Conversation

MYanello
Copy link
Contributor

No description provided.

@MYanello
Copy link
Contributor Author

For this feature request: #1007

Copy link
Owner

@arsenetar arsenetar left a 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)
Copy link
Owner

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.

Copy link
Contributor Author

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)
Copy link
Owner

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, thanks

@sonarcloud
Copy link

sonarcloud bot commented Jun 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@arsenetar arsenetar merged commit b9aabb8 into arsenetar:master Jun 14, 2022
@MYanello
Copy link
Contributor Author

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

@arsenetar
Copy link
Owner

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.

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