changes for tornado 3.1 support
logging