fixed the logging
Merge pull request #111 from Galithil/master

fixed the logging