Disable debug messages for Scripts - Background

BabyYoda
Tera Expert

Something peculiar I noticed. I have a Script Include containing debug messages (gs.debug) and a Before When Query Business Rule which calls said Script Include. I'm testing something else in a background script (Scripts - Background, to be technical) and I see debug messages appearing in the result window. I don't have any debuggers enabled. My inclination is debug messages only appear in the logs if debugging is enabled.

 

Well, that then begs the question of are background scripts treated inherently as debug mode and, thus, any workflow which contains debug messages may appear in your background scripts? If so, is there a system property or some other means to turn off debug messages when executing a background script?

 

Is there some condition I can set forth in the Business Rule Conditionals as if to say don't run if user is executing a background script? That way, the Script Include and Business Rule script would never run and, thus, no debug messages to clutter up my background script. Better yet, include the exception in the Script Include and Business Rule Script itself to only run if the user is not executing a background script.

0 REPLIES 0