_acs-tcl__server_error_log (private)
_acs-tcl__server_error_log
Defined in packages/acs-tcl/tcl/test/log-test-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ # Log error lines start with something like this: # [19/Nov/2003:00:54:45][10491.319494][-conn1-] Error: set logfile [ns_info log] if {$logfile eq "STDOUT"} { set logfile "$::acs::rootdir/log/error/current" } set fd [open $logfile r] set entry {} set inside_error_p 0 while { [gets $fd line] != -1 } { if { [regexp {^\[([^\]]*)\]\[[^\]]*\]\[[^\]]*\] ([^: ]*): (.*)$} $line match timestamp level rest] } { if { $inside_error_p } { aa_log_result "fail" "$timestamp: $entry" set inside_error_p 0 } if {$level eq "Error"} { set inside_error_p 1 set entry {} append entry $rest \n #"(Rest was=$rest)" \n } } elseif { $inside_error_p } { append entry $line \n } } close $fd }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "server_error_log (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle