Fix use after free problem when printing log
Add log when loading translator