Fix wrong type conversion in Log string.

Fix wrong type conversion in Log string.