Misssing info in errorlog

  • Thread starter Thread starter Lars Brownies
  • Start date Start date
L

Lars Brownies

I have a sub which calls function A. Function A is also used in other
subs/functions throughout the database. When an error occurs in function A
it is logged in a text file. In this file I can only see that a certain
error has occured in function A. I can't see which sub/function called
function A. Is there some kind of FunctionCaller parameter I can call or
should I add a parameter to function A and pass on the calling sub/function?
Or can you advice something else?

Thanks,

Lars
 
I have a sub which calls function A. Function A is also used in other
subs/functions throughout the database. When an error occurs in function A
it is logged in a text file. In this file I can only see that a certain
error has occured in function A. I can't see which sub/function called
function A. Is there some kind of FunctionCaller parameter I can call or
should I add a parameter to function A and pass on the calling sub/function?
Or can you advice something else?
The general opinion seem to be that there is no way to do this
directly. Beside giving the caller name in a parameter as you say
(this is my way to do this), it is also a possibility to set a global
variable where every caller writes its name.
http://www.codeguru.com/forum/showthread.php?t=371582

Marco P
 
Thanks Marco.
I think I also go with the method you use. Putting the parameter in the
calling function I think is more logical than setting the global variable
somewhere in the code of the calling function.

Lars
 
Back
Top