Skip to content

Update apm.py - #1

Merged
loganbeal merged 3 commits into
APMonitor:masterfrom
seanlane:patch-1
Feb 1, 2018
Merged

Update apm.py#1
loganbeal merged 3 commits into
APMonitor:masterfrom
seanlane:patch-1

Conversation

@seanlane

Copy link
Copy Markdown
Contributor

Add option to not print output from APM cmd. In a perfect world, I think it might be best to adjust the return value of method to return a tuple of (response, output) so the caller can do what they will with the output, or something similar, but that will likely cause a fair amount of refactoring.

This change should keep the default behavior while allowing to opt out from printing input, for example when running APM from Gekko. I haven't spent an inordinate amount of time thinking over this change, so feedback is certainly welcome :)

Add option to not print output from APM cmd. In a perfect world, I think it might be best to adjust the return value of method to return a tuple of `(response, output)` so the caller can do what they will with the output, or something similar, but that will likely cause a fair amount of refactoring.

This change should keep the default behavior while allowing to opt out from printing input, for example when running APM from Gekko. I haven't spent an inordinate amount of time thinking over this change, so feedback is certainly welcome :)
Add same change to Python 3 branch
Add comment to Python 2 branch as well
@loganbeal
loganbeal merged commit 89b9bc4 into APMonitor:master Feb 1, 2018
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