Related to Info logs get user call stack.. and limit it
Classes\Info\add - at end before Return Statmenet.
container callStack;
int counter;
// To display the stack trace based on current user
if(SysUserInfo::find(curUserId()).StackTrace == NoYes::Yes)
{
callStack = xSession::xppCallStack();
_txt += '\n';
for(counter = 1; counter <= conlen(callStack); counter++)
{
_txt += conpeek(callStack, counter);
if((counter mod 2) == 0)
{
_txt += '\n';
}
else
{
_txt += ' ';
}
}
}
Classes Info\CloseInfoDeleayed
if (this.browser() != null && this.browser().canClose())
Classes info\View Build
int infoLogLimit;
// To display the stack trace based on current user
/* if (enum.length() > #maxerrors)
{
enum.delete(#maxerrors);
enum.add(Exception::Warning, strfmt("@SYS86217", #maxerrors));
}*/
infoLogLimit = Sysuserinfo::find(curUserId()).ErrorLimit;
if(infoLogLimit == 0)
{
infoLogLimit = #maxerrors;
}
if (enum.length() > infoLogLimit)
{
enum.delete(infoLogLimit);
enum.add(Exception::Warning, strfmt("@SYS86217", infoLogLimit));
}
Before startLengthyOperation();
No comments:
Post a Comment