Skip to content

Commit

Permalink
Less verbose by default. (#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienvercammen committed May 1, 2017
1 parent 3c3530a commit 912f561
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pogom/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@ def next_item(self, status):
last_action = status['last_scan_date']

# Logging.
log.info('Enumerating %s scan locations in queue.',
len(q))
log.debug('Enumerating %s scan locations in queue.',
len(q))

# Keep some stats for logging purposes. If something goes wrong,
# we can track what happened.
Expand Down Expand Up @@ -978,20 +978,20 @@ def next_item(self, status):

# If we didn't find one, log it.
if not best:
log.info('Enumerating queue found no best location, with'
+ ' %s claimed, %s parked, %s missed, %s fresh band'
+ " skips, %s missed because we're early, %s because"
+ " we're too late. Minimum %s time remaining on"
+ ' parked item, and %s time remaining for next'
+ ' fresh band.',
count_claimed,
count_parked,
count_missed,
count_fresh_band,
count_early,
count_late,
min_parked_time_remaining,
min_fresh_band_time_remaining)
log.debug('Enumerating queue found no best location, with'
+ ' %s claimed, %s parked, %s missed, %s fresh band'
+ " skips, %s missed because we're early, %s because"
+ " we're too late. Minimum %s time remaining on"
+ ' parked item, and %s time remaining for next'
+ ' fresh band.',
count_claimed,
count_parked,
count_missed,
count_fresh_band,
count_early,
count_late,
min_parked_time_remaining,
min_fresh_band_time_remaining)
else:
log.debug('Enumerating queue found best location: %s.',
repr(best))
Expand Down

0 comments on commit 912f561

Please sign in to comment.