Improve the simple_filter macro

The simple_filter macro must accept the two different levels of
contexts. In the same way, it should also accept the log level, and
therefore replace the now removed simple_filter_log_level macro.
This commit is contained in:
Rodolphe Breard 2019-09-18 14:52:21 +02:00
parent 789a41b51e
commit 995c0c35c1
4 changed files with 46 additions and 22 deletions

View file

@ -20,6 +20,6 @@ opensmtpd_derive = { path = "../opensmtpd-derive", version = "0.2" }
name = "echo"
path = "examples/echo.rs"
#[[example]]
#name = "counter"
#path = "examples/session_event_counter.rs"
[[example]]
name = "counter"
path = "examples/session_event_counter.rs"