Some print statements are useful, some can be spamming console output with unnecessary information (that is why gid() print statements were commented out.
I suggest using python logging functionality such as:
import logging
logging.basicConfig(
format='%(levelname) 10s %(asctime)s %(message)s',
level=logging.ERROR
)
log = logging.getLogger('error_log')
log.error('something is wrong man.')
log.warning('something is funny man')
Code snippet above will print only "error" messages
Some print statements are useful, some can be spamming console output with unnecessary information (that is why
gid()print statements were commented out.I suggest using python logging functionality such as:
Code snippet above will print only "error" messages