Add some logging information to close #471.