Skip to content

Commit 93a0b8d

Browse files
denyspozniakrazvancrainea
authored andcommitted
docs: document the parse_err_log_level core parameter
1 parent 71fbf17 commit 93a0b8d

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

‎docs/manual/Script-CoreParameters.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,20 @@ Example of usage:
843843
844844
```
845845

846+
### parse_err_log_level
847+
848+
The log level of the errors reported while parsing incoming SIP messages (bad headers, bad Via, CSeq, To or From bodies, unparsable messages). Set it above [log_level](#log_level) to keep scanners and broken clients from flooding the log; other errors are not affected. Takes the same values as [log_level](#log_level).
849+
850+
Default value is `-1` (error level).
851+
852+
Example of usage:
853+
```opensips
854+
855+
# log SIP parse errors only when running with log_level = 3 or higher
856+
parse_err_log_level = 3
857+
858+
```
859+
846860
### pi_framework
847861

848862
The path to the XML provisioning framework used by the active PI transport.

‎utils/vim/opensips.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ syn keyword osGlobalParam tcp_max_msg_time abort_on_assert anycast
5555
syn keyword osGlobalParam log_prefix
5656
syn keyword osGlobalParam stderror_log_format syslog_log_format
5757
syn keyword osGlobalParam log_json_buf_size log_msg_buf_size log_ratelimit_period
58-
syn keyword osGlobalParam log_event_enabled log_event_level_filter
58+
syn keyword osGlobalParam log_event_enabled log_event_level_filter parse_err_log_level
5959
syn keyword osGlobalParam shm_memlog_size
6060

6161
" String constants

0 commit comments

Comments
 (0)