Apply logging patch from 10gen.

Seeking more information to resolve this bug:
https://jira.mongodb.org/browse/CS-5546