Created
January 9, 2015 20:14
-
-
Save pingswept/9193dbd4e6f881d21c78 to your computer and use it in GitHub Desktop.
Test script for Supervisord logging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import datetime | |
| from time import sleep | |
| import sys | |
| while(1): | |
| sys.stdout.write('The time is now: {0}\n'.format(datetime.datetime.now())) | |
| sys.stdout.flush() | |
| sleep(5) | |
| sys.stderr.write("Fake error, everyone!") | |
| sys.stderr.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment