Fix on order sate history registration
Enable debug log on all orders importation