fix calls to logger when using callbacks
Merge branch 'lua52' of github.com:splay-project/splay into lua52