This is tricky, you shouldn't use a tuple, the variables must be parameters. logging.error("To expect emulatorpin %s: %s", cpu_list, emulator_from_cmd)