Every time I run a Toolkit AMI, why do I get a Command Output window appear in Shotgun?

When running Toolkit actions in Shotgun you may see a Command Output frame pop up inside the webpage.
Shotgun AMIs

This pop up can be caused by two different scenarios.

  1. The action that was run encountered an error, in which case this pop up will contain the details the error that occurred.

  2. You have debug logging enabled. In this situation, the pop up will occur every time you run an action regardless of if there is an error. To fix it you need to disable debug logging.