Skip to content

Instantly share code, notes, and snippets.

@farshidce
Created November 17, 2016 00:24
Show Gist options
  • Save farshidce/0ed9611694ba2d97496751c913f5d54e to your computer and use it in GitHub Desktop.
Save farshidce/0ed9611694ba2d97496751c913f5d54e to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
import os
for key in os.environ.keys():
print("%s %s" % (key, os.environ[key]))
import logging
from stem.messaging import messaging
logger = logging.getLogger(__name__)
for key in os.environ.keys():
print("%s %s" % (key, os.environ[key]))
logger.info("%30s %s \n" % (key,os.environ[key]))
def main():
# sys.argv.append('-v2')
messaging.main()
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment