Skip to content

Commit

Permalink
log proj id, user id (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
dchhabda committed Sep 7, 2022
1 parent 73e263b commit e8ae50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybossa/cache/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def n_available_tasks_for_user(project, user_id=None, user_ip=None):
sqltext = text(sql)
try:
result = session.execute(sqltext, dict(project_id=project_id, user_id=user_id, assign_user=assign_user))
current_app.logger.info("n_available_tasks_for_user. making db request %s", sql)
current_app.logger.info("n_available_tasks_for_user making db request for project_id %d. user_id %d", project_id, user_id)
if scheduler not in [Schedulers.user_pref, Schedulers.task_queue]:
for row in result:
n_tasks = row.n_tasks
Expand Down

0 comments on commit e8ae50c

Please sign in to comment.