Logging in PA Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2018 07:12 AM
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
- Labels:
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 01:53 AM
gs.info() works for me ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 01:59 PM
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.