fix logger concurrency issue, remove unused imports from Trainer.scala