replaces printStackTrace with logger
Merge pull request #1 from s1mbi0se/fix_logging

Fix logging