log training bugfix