log error msg
Merge pull request #2 from lzhan/example

log error msg