fix logging
fix logging 2
Merge pull request #497 from maraoz/fix/logging

fix logging