WeBWorK Problems

MultiAnswer answer_log logging

MultiAnswer answer_log logging

by Gavin LaRose -
Number of replies: 1
Hi all,

I am looking at a problem that uses the MultiAnswer MathObject to check an answer. I just noticed that when I check the answer log for the problem, however, only the response to the first answer blank is being logged.

Is this expected? A bug? If the latter, has it been corrected in new versions of the system (we're still running a fairly old version on our production server)? (For what it's worth, the problem we're using is a TCNJ Library problem: Library/TCNJ/TCNJ_CharacteristicPolynomial/problem6.pg.)

Thanks,
Gavin

In reply to Gavin LaRose

Re: MultiAnswer answer_log logging

by Davide Cervone -
The answer logging is based on the answer rules that are tied to an answer checker in the problem; but MultiAnswer creates "extra" rules that are not tied directly to a checker, so these aren't recorded. The same is also true for Matrix objects that use ans_array, by the way.

I know that the answer log code has recently been rewritten to use the database rather than a log file (as my original 10-year-old code did), but I'm not sure if they have changed that behavior or not. I also know that Mike has rewritten a lot of the underlying infrastructure for the answer checkers in order to make it easier to keep the connection between rules and checkers, so it might be that it would be easier to get this right now. But unless you were running a pre-release version of the system code, then what you are getting is the "expected" behavior (at least in the sense that this is a known issue).

Davide