From 494959af441c9d743682d6a690cb17897efec20f Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Tue, 23 Apr 2024 20:48:14 +0200 Subject: [PATCH] feat: Add engine info to startup log --- src/ngx_http_modsecurity_module.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ngx_http_modsecurity_module.c b/src/ngx_http_modsecurity_module.c index 5c341e2..8775c09 100644 --- a/src/ngx_http_modsecurity_module.c +++ b/src/ngx_http_modsecurity_module.c @@ -661,6 +661,9 @@ ngx_http_modsecurity_init_main_conf(ngx_conf_t *cf, void *conf) "%s (rules loaded inline/local/remote: %ui/%ui/%ui)", MODSECURITY_NGINX_WHOAMI, mmcf->rules_inline, mmcf->rules_file, mmcf->rules_remote); + ngx_log_error(NGX_LOG_NOTICE, cf->log, 0, + "libmodsecurity3 version %s.%s.%s", + MODSECURITY_MAJOR, MODSECURITY_MINOR, MODSECURITY_PATCHLEVEL); return NGX_CONF_OK; }