NICMx / FORT-validator

RPKI cache validator
MIT License
47 stars 22 forks source link

Refactor validation and operation logging #121

Open ydahhrk opened 2 months ago

ydahhrk commented 2 months ago

The code currently hardcodes the type (validation vs operation) of each log. It's a lousy solution, because some code runs in both contexts, which might result in logging being dumped in the wrong output.

Instead, the logging subsystem should probably decide log type based on whether it's being called from a validation thread or not.

Also, I'm fantasizing about moving validation messages into a prettier, optional report. Likely Fort 2.0 material.