| Description: |
enterHandler and leaveHandler use catch statements to
test for the existance of certain namespace varibales.
if these catch statements fire, they modify errorInfo.
catching an error, and trying to log errorInfo can log
the wrong information if you are visiting a function
for the first time.
can't read
"::profiler::descendants(process_message,::errlog)": no
such element in array
(reading value of variable to increment)
invoked from within
"incr ::profiler::descendants($caller,$name)"
I added
global errorInfo
set origError $errorInfo
to the beginning and
set errorInfo $origError
to the end of both enterHandler and leaveHandler.
|