answers.log contains incomplete or malformed lines

Abierto
#2,016 13 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
perl
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Perl
Estrellas
164
Forks
167
Merge medio
6 d 7 h
PR fusionados (30 d)
27

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openwebwork/webwork2

Todos los issues de openwebwork/webwork2

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.