Fix wrong logging.
Merge pull request #4802 from shenweip/patch-13

Fix wrong logging.