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

Log stdout/stderr to server.log #10

Merged
merged 1 commit into from
Apr 30, 2013

Conversation

davehunt
Copy link
Contributor

@@ -41,7 +42,10 @@ def start(self):
This will start the browsermob proxy and then wait until it can
interact with it
"""
self.process = Popen(self.command, stdout=PIPE, stderr=STDOUT)
self.log_file = open(os.path.abspath('server.log'), 'w')
Copy link
Owner

Choose a reason for hiding this comment

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

This will overwrite the file each time you run it, I am happy with that, but is that what you mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it was intentional to prevent the file growing too large or becoming irrelevant.

AutomatedTester added a commit that referenced this pull request Apr 30, 2013
Log stdout/stderr to server.log
@AutomatedTester AutomatedTester merged commit e6429df into AutomatedTester:master Apr 30, 2013
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