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

Fixed the logging handler
update version to 1.2.1
Merge pull request #1624 from gem/release-1.2

Fixed the logging handler.