How to stop console from being spammed by print?

Simply put, how do I stop a continuously running script from spamming my Blender console when I use the print() argument while keeping the sensor on True pulse mode so the will be script running continuously? Some scripts need to be continuous, but only print debug messages 1 or 3 times for effects like fire and stuff.

use and check a property

if not own['printed']:
    own['printed'] = True