aa_silence_log_entries (public)
aa_silence_log_entries -severities severities code
Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl
Silence expected messages in the system log. The proc deactivates the specified severity levels during the code in the last argument is executed. After it has finished, the severity levels are reset to their previous values.
- Switches:
- -severities (required)
- Parameters:
- code (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- webtest_example, upgrade
Source code: set old_severity_values [lmap severity $severities {ns_logctl severity $severity 0}] try { set result [uplevel $code] } finally { foreach severity $severities old_severity_value $old_severity_values { ns_logctl severity $severity $old_severity_value } } return $resultXQL Not present: Generic, PostgreSQL, Oracle