fixing logging connector.py, close #9608
Merge pull request #1704 from aleksandra-tarkowska/9608_logging

#9608 fixing logging