Skip to content

Commit

Permalink
Add account name in bad scan log (#2446)
Browse files Browse the repository at this point in the history
* Add account name in bad scan log

* Consistency w/ rest of code.
  • Loading branch information
roberthbelter authored and sebastienvercammen committed Jan 18, 2018
1 parent 7a7c3ff commit 0a0056f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pogom/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,8 @@ def parse_map(args, map_dict, scan_coords, scan_location, db_update_queue,
if not wild_pokemon and not nearby_pokemon:
# ...and there are no gyms/pokestops then it's unusable/bad.
if not forts:
log.warning('Bad scan. Parsing found absolutely nothing.')
log.warning('Bad scan. Parsing found absolutely nothing'
+ ' using account %s.', account['username'])
log.info('Common causes: captchas or IP bans.')
elif not args.no_pokemon:
# When gym scanning we'll go over the speed limit
Expand Down

0 comments on commit 0a0056f

Please sign in to comment.