fix logging
Merge pull request #821 from walterking/master

fix logging