Only use console output if debug option is present