Some changes to AI logging.
Merge branch 'master' of https://github.com/magefree/mage.git