Skip to content
This repository has been archived by the owner on Dec 16, 2017. It is now read-only.

Commit

Permalink
Push string interpolation to logging in config.check_proxy()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Maxwell committed Apr 1, 2015
1 parent 8e269d6 commit 9fa337d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maltrieve.py
Expand Up @@ -127,9 +127,9 @@ def __init__(self, args, filename='maltrieve.cfg'):

def check_proxy(self):
if self.proxy:
logging.info('Using proxy {proxy}'.format(proxy=self.proxy))
logging.info('Using proxy %s', self.proxy)
my_ip = requests.get('http://ipinfo.io/ip', proxies=self.proxy).text
logging.info('External sites see {ip}'.format(ip=my_ip))
logging.info('External sites see %s', my_ip)
print 'External sites see {ip}'.format(ip=my_ip)


Expand Down

0 comments on commit 9fa337d

Please sign in to comment.