Logging in PA Script

Dominik Simunek
Tera Guru

I have a PA script (pa_script) table where I have a script and I would like to use logging to check the values I have there. Unfortunately it looks that I am not able to do it (in Istanbul release) as nothing is logged and even the scores are not collected. Once I remove the log, all is fine and scores are collected.

Does anybody know in which context/environment pa_script is executed and why I cannot use gs.log (nor gs.info)? Anybody having idea for a workaround?

I could run the script in a background script etc. to debug most of the logic, that is fine, but I would like to test specifically what are exactly the values of "score_end" variable and related calculations.

Thanks,

Dominik

2 REPLIES 2

Padmanabam Tiru
ServiceNow Employee
ServiceNow Employee

gs.info() works for me ..

Adam Stout
ServiceNow Employee
ServiceNow Employee

What user are you running PA as?  If you are using System Administrator, this is going to be tough to debug.  If you are using a dedicated user (which is what I recommend), look at all the entries created by that user and you may find your problem.  gs.info and gs.log should work fine.  Is your data collector in a scoped app?  That may have an effect on the issue.