fix logging
Merge branch 'master' into pull-requests