okpy / ok

ok.py supports programming projects by running tests, tracking progress, and assisting in debugging.
Apache License 2.0
331 stars 83 forks source link

Error in logging code on assigning grading queue #1415

Closed msuperdock closed 2 years ago

msuperdock commented 2 years ago

I get the following error when trying to assign a grading queue (using the "correctness" option, if it's relevant). The error is that the function log() is called with the wrong number of arguments.

Description Assign Grading Queues For ... ... Log

Job failed
Traceback (most recent call last):
  File "/code/server/jobs/__init__.py", line 57, in job_handler
    return_value = f(*args, **kwargs)
  File "/code/server/jobs/assign_grading_queues.py", line 26, in assign_grading_queues
    logger.log("{} created!".format(tasks))
TypeError: log() missing 1 required positional argument: 'msg'
msuperdock commented 2 years ago

This was introduced by commit 50a0019 yesterday.

rahularya50 commented 2 years ago

Sorry about that, will fix. However, the queues themselves should actually be assigned, this error happens after all the changes are committed.

rahularya50 commented 2 years ago

Should be fixed now. Please reopen if you can still repo