1.show detail log when exception
2.fix bug for api of getting token info.
Merge pull request #14 from strongyuan/master

fixed get token info