About mail sending function #522
-
I would like to be notified by email when "NRTM update" or "complete import by downloading from FTP site" fails. ■ Example of message logged when NRTM update fails
■ Examples of messages logged when full FTP import fails
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is probably possible, but non-trivial, with custom logging configuration: https://irrd.readthedocs.io/en/stable/admins/configuration/#logging Error responses from NRTMv3 queries are also ambiguous, which is why IRRD logs them at DEBUG level. Failed file downloads or TCP connections are clear errors, hence they are logged as ERROR. The way NRTMv3 works in IRRD is that we have data up to serial X, and request all updates from X-1 until LAST. If X+1 does not exist yet, the server may return an error. So where |
Beta Was this translation helpful? Give feedback.
This is probably possible, but non-trivial, with custom logging configuration: https://irrd.readthedocs.io/en/stable/admins/configuration/#logging
You'd need to dive into the Python logging framework for this, to have a custom logger that detects the cases you want to log, and then set up a handler that sends emails. Also, be aware that as the docs say, misconfigurations can lead to log messages being silently lost.
Error responses from NRTMv3 queries are also ambiguous, which is why IRRD logs them at DEBUG level. Failed file downloads or TCP connections are clear errors, hence they are logged as ERROR. The way NRTMv3 works in IRRD is that we have data up to serial X, and request all upda…