Only log when debug mode is active