Bug: when log lines are not parsed, they are silently ignored, and nor the user nor signals know about them
As of 2.0-RC4
The peer network and the user should know when log lines are not being recognized by the parser.
It'll help troubleshooting when the wrong log_format
is being used to parse the logs, so that we are able to inform the user about the misconfiguration. It'll be also useful for the peer network to identify possible bugs in the parser.
Idea:
Currently pkg/postfix.Publisher()
is only called when lines are recognized and having a different interface for unrecognized lines, we could call Publish with some custom valid payload, but that could easily be recognized as failed to be parsed.
Edited by Leandro Santiago