Fixed the logging handler
Merge pull request #1622 from gem/fix-logging-handler

Fixed the logging handler