Also debug the user-agent

This commit is contained in:
Matt Martz 2015-12-23 12:29:40 -06:00
parent 308c530f07
commit 65145d9aae
1 changed files with 4 additions and 3 deletions

View File

@ -291,6 +291,7 @@ def build_user_agent():
'speedtest-cli/%s' % __version__
)
USER_AGENT = ' '.join(ua_tuple)
printer(USER_AGENT, debug=True)
return USER_AGENT
@ -1141,9 +1142,6 @@ def shell():
socket.setdefaulttimeout(args.timeout)
# Pre-cache the user agent string
build_user_agent()
# If specified bind to a specific IP address
if args.source:
SOURCE = args.source
@ -1156,6 +1154,9 @@ def shell():
if debug:
DEBUG = True
# Pre-cache the user agent string
build_user_agent()
if args.simple or args.csv or args.json:
quiet = True
else: