fix logger for mako, issue #883