Skip to content

Commit 1d7b67f

Browse files
authored
Merge pull request #319 from airween/extendloginfo
feat: Add engine info to startup log
2 parents 61425ed + 494959a commit 1d7b67f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ngx_http_modsecurity_module.c

+3
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,9 @@ ngx_http_modsecurity_init_main_conf(ngx_conf_t *cf, void *conf)
661661
"%s (rules loaded inline/local/remote: %ui/%ui/%ui)",
662662
MODSECURITY_NGINX_WHOAMI, mmcf->rules_inline,
663663
mmcf->rules_file, mmcf->rules_remote);
664+
ngx_log_error(NGX_LOG_NOTICE, cf->log, 0,
665+
"libmodsecurity3 version %s.%s.%s",
666+
MODSECURITY_MAJOR, MODSECURITY_MINOR, MODSECURITY_PATCHLEVEL);
664667

665668
return NGX_CONF_OK;
666669
}

0 commit comments

Comments
 (0)