Fix logger error when verbose mode is off