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):
%3 test_upgrade upgrade (test acs-lang) aa_silence_log_entries aa_silence_log_entries test_upgrade->aa_silence_log_entries test_webtest_example webtest_example (test acs-automated-testing) test_webtest_example->aa_silence_log_entries lang::test::execute_upgrade lang::test::execute_upgrade (private) lang::test::execute_upgrade->aa_silence_log_entries

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 $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: