Fix add command id in log

When assignement failed because of RAM ressource, add the id of the command in log