diff --git a/pogom/pgoapi/auth_ptc.py b/pogom/pgoapi/auth_ptc.py index 81243359d4..eb36898a44 100644 --- a/pogom/pgoapi/auth_ptc.py +++ b/pogom/pgoapi/auth_ptc.py @@ -46,8 +46,8 @@ def __init__(self): def login(self, username, password): - self.log.info('Login for: %s', username) - + self.log.info('PTC login for: %s', username) + head = {'User-Agent': 'niantic'} r = self._session.get(self.PTC_LOGIN_URL, headers=head) diff --git a/pogom/search.py b/pogom/search.py index 74db6ed1a0..90d4f2973c 100644 --- a/pogom/search.py +++ b/pogom/search.py @@ -49,15 +49,15 @@ def generate_location_steps(initial_location, num_steps): def login(args, position): - log.info('Attempting login.') + log.info('Attempting login to Pokemon Go.') api.set_position(*position) while not api.login(args.auth_service, args.username, args.password): - log.info('Login failed. Trying again.') + log.info('Failed to login to Pokemon Go. Trying again.') time.sleep(REQ_SLEEP) - log.info('Login successful.') + log.info('Login to Pokemon Go successful.') def search(args): @@ -68,7 +68,7 @@ def search(args): remaining_time = api._auth_provider._ticket_expire/1000 - time.time() if remaining_time > 60: - log.info("Skipping login process since already logged in for another {:.2f} seconds".format(remaining_time)) + log.info("Skipping Pokemon Go login process since already logged in for another {:.2f} seconds".format(remaining_time)) else: login(args, position) else: