Only print debug messages when in debug mode