feat: debug log diff
This commit is contained in:
parent
3682a36fde
commit
a5a4a649dc
|
@ -2,6 +2,7 @@ package diff
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
"strings"
|
||||
"unicode"
|
||||
|
@ -52,7 +53,10 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
|
|||
if err != nil {
|
||||
return nil, true, err
|
||||
}
|
||||
|
||||
slog.Debug("compare", "filename", output.FileName,
|
||||
"answer path", output.AnswerPath,
|
||||
"actual", result.Files[output.FileName],
|
||||
"answer", string(answer))
|
||||
// If no difference, assign score
|
||||
if compareChars(string(answer), result.Files[output.FileName], output.IgnoreWhitespace) {
|
||||
score += output.Score
|
||||
|
|
Loading…
Reference in New Issue
Block a user