Adjust some log levels
This commit is contained in:
Родитель
71be3add5a
Коммит
98bbf0ea1a
|
@ -30,7 +30,7 @@ def update_addons_current_version():
|
|||
|
||||
@task(rate_limit='2/m')
|
||||
def _update_addons_current_version(data, **kw):
|
||||
task_log.debug("[%s@%s] Updating addons current_versions." %
|
||||
task_log.info("[%s@%s] Updating addons current_versions." %
|
||||
(len(data), _update_addons_current_version.rate_limit))
|
||||
for pk in data:
|
||||
try:
|
||||
|
@ -64,7 +64,7 @@ def update_addon_average_daily_users():
|
|||
|
||||
@task(rate_limit='15/m')
|
||||
def _update_addon_average_daily_users(data, **kw):
|
||||
task_log.debug("[%s@%s] Updating add-ons ADU totals." %
|
||||
task_log.info("[%s@%s] Updating add-ons ADU totals." %
|
||||
(len(data), _update_addon_average_daily_users.rate_limit))
|
||||
|
||||
for pk, count in data:
|
||||
|
@ -95,7 +95,7 @@ def update_addon_download_totals():
|
|||
|
||||
@task(rate_limit='15/m')
|
||||
def _update_addon_download_totals(data, **kw):
|
||||
task_log.debug("[%s@%s] Updating add-ons download+average totals." %
|
||||
task_log.info("[%s@%s] Updating add-ons download+average totals." %
|
||||
(len(data), _update_addon_download_totals.rate_limit))
|
||||
|
||||
for pk, avg, sum in data:
|
||||
|
|
|
@ -31,7 +31,7 @@ def update_collections_subscribers():
|
|||
|
||||
@task(rate_limit='15/m')
|
||||
def _update_collections_subscribers(data, **kw):
|
||||
task_log.debug("[%s@%s] Updating collections' subscribers totals." %
|
||||
task_log.info("[%s@%s] Updating collections' subscribers totals." %
|
||||
(len(data), _update_collections_subscribers.rate_limit))
|
||||
cursor = connection.cursor()
|
||||
today = datetime.date.today()
|
||||
|
@ -71,7 +71,7 @@ def update_collections_votes():
|
|||
|
||||
@task(rate_limit='15/m')
|
||||
def _update_collections_votes(data, stat, **kw):
|
||||
task_log.debug("[%s@%s] Updating collections' votes totals." %
|
||||
task_log.info("[%s@%s] Updating collections' votes totals." %
|
||||
(len(data), _update_collections_votes.rate_limit))
|
||||
cursor = connection.cursor()
|
||||
for var in data:
|
||||
|
|
|
@ -48,6 +48,6 @@ class CookieCleaningMiddleware(object):
|
|||
# TODO(davedash): Remove this method when we no longer get any of these
|
||||
# loggged.
|
||||
if request.COOKIES.get('locale-only'):
|
||||
log.info("Removed a locale-only cookie.")
|
||||
log.debug("Removed a locale-only cookie.")
|
||||
response.delete_cookie('locale-only')
|
||||
return response
|
||||
|
|
|
@ -35,6 +35,6 @@ class Command(BaseCommand):
|
|||
print 'Unrecognized name: %s' % script
|
||||
sys.exit(1)
|
||||
|
||||
log.debug("Beginning job: %s %s" % (script, args))
|
||||
log.info("Beginning job: %s %s" % (script, args))
|
||||
registered[script](*args)
|
||||
log.debug("Ending job: %s %s" % (script, args))
|
||||
log.info("Ending job: %s %s" % (script, args))
|
||||
|
|
|
@ -36,7 +36,7 @@ def update_addons_collections_downloads():
|
|||
|
||||
@task(rate_limit='10/m')
|
||||
def _update_addons_collections_downloads(data, **kw):
|
||||
task_log.debug("[%s@%s] Updating addons+collections download totals." %
|
||||
task_log.info("[%s@%s] Updating addons+collections download totals." %
|
||||
(len(data), _update_addons_collections_downloads.rate_limit))
|
||||
for var in data:
|
||||
(CollectionAddon.objects.filter(addon=var['addon'],
|
||||
|
@ -59,7 +59,7 @@ def update_collections_total():
|
|||
|
||||
@task(rate_limit='15/m')
|
||||
def _update_collections_total(data, **kw):
|
||||
task_log.debug("[%s@%s] Updating collections' download totals." %
|
||||
task_log.info("[%s@%s] Updating collections' download totals." %
|
||||
(len(data), _update_collections_total.rate_limit))
|
||||
for var in data:
|
||||
(Collection.objects.filter(pk=var['collection_id'])
|
||||
|
@ -84,7 +84,7 @@ def update_global_totals(date=None):
|
|||
|
||||
@task(rate_limit='20/h')
|
||||
def _update_global_totals(job, date):
|
||||
task_log.debug("[%s] Updating global statistics totals (%s) for (%s)" %
|
||||
task_log.info("[%s] Updating global statistics totals (%s) for (%s)" %
|
||||
(_update_global_totals.rate_limit, job, date))
|
||||
|
||||
jobs = _get_daily_jobs()
|
||||
|
|
|
@ -49,7 +49,7 @@ def update_user_ratings():
|
|||
|
||||
@task(rate_limit='15/m')
|
||||
def _update_user_ratings(data, **kw):
|
||||
task_log.debug("[%s@%s] Updating add-on author's ratings." %
|
||||
task_log.info("[%s@%s] Updating add-on author's ratings." %
|
||||
(len(data), _update_user_ratings.rate_limit))
|
||||
for pk, rating in data:
|
||||
rating = "%.2f" % round(rating, 2)
|
||||
|
|
|
@ -470,5 +470,6 @@ LOGGING = {
|
|||
'loggers': {
|
||||
'caching': {'handlers': ['null']},
|
||||
'z.sphinx': {'level': logging.INFO},
|
||||
'z.task': {'level': logging.INFO},
|
||||
},
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче