answers.log contains incomplete or malformed lines

Ouverte
#2,016 13 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 4 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
22/100
Type d'issue
Bug
Clarté
À clarifier
Activité
À l'abandon
Stack technique
perl
Domaine
backend

Piste de recherche

The payload names no source file, so start by searching the repository for where answers.log is written and which code path logs each answer. The sample lines show a broken record: a newline inside an answer field splits the entry, and some lines lack the timestamp prefix. Done means the logger writes one well-formed line per answer, reproduced with input that contains newlines.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Here are 3 consecutive lines from the file answers.log in my course:

[Thu Mar 09 21:48:44 2023] |ZI7UJNQDCR03|WW06|18|100    1678427324      -ky
x+32)/2
[Thu Mar 09 21:48:44 2023] |7XTJHYSEKZ08|WW06|13|100000 1678427324      tan(arctanx)    [0,pi]

Here are 3 others:

[Thu Mar 09 21:49:11 2023] |C93SRBEKNW04|WW06|19|1110   1678427351      7       1       3       3.67
8(T-22) 106.3
[Thu Mar 09 21:49:12 2023] |BA05O2XZTR07|WW06|13|111000 1678427352      x       (-inf,inf)      tan(arctanx+arctan(-5))

In both cases there is something wrong with the line in the middle. My answers.log file has 1326 lines that don't have the expected structure, out of 3052734 lines in total. For many of these, including the two examples shown above, the lines before and after show timestamps that are very close together (sometimes identical).

Unfortunately I do not have the knowledge or skill to help fix this. All I can do is report it. Thanks for reading.

I harvested the file named "answers.log" from the File Manager in the user-facing web interface. To make sure I got a valid copy I downloaded the file twice. Both copies (size 301MB) show the same md5 hash.

This is WeBWorK © 1996-2022 | theme: math4 | ww_version: 2.17 | pg_version 2.17

Langage dominant
Perl
Étoiles
164
Forks
167
Merge moyen
6 j 7 h
PR mergées (30 j)
27

Préparer son environnement

  • Fournit un Dockerfile ou un fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de openwebwork/webwork2

Toutes les issues de openwebwork/webwork2

Issues similaires

Plus d'issues Perl

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.