Debug bug issue-8, add log for this bug.

add log for this bug.
Merge pull request #206 from whuthm/master

Debug bug issue-8, add log for this bug.