add logs to determine error
Merge pull request #141 from jgho/dev

add logs to determine error