Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log打印的太少了,非常难于调试 #72

Closed
baiyuxiong opened this issue Mar 2, 2015 · 6 comments
Closed

log打印的太少了,非常难于调试 #72

baiyuxiong opened this issue Mar 2, 2015 · 6 comments

Comments

@baiyuxiong
Copy link

建议添加log信息或者记录log文件。

@chanxuehong
Copy link
Owner

不好意思,才看到。
你想要打印哪些信息呢?debug版本的那些打印不能滿足你?

@chanxuehong
Copy link
Owner

@baiyuxiong
Copy link
Author

哦,默认debug是关闭的吗?我没改过配置。接口调用的时候就只有一行文字信息:token is empty.

@baiyuxiong
Copy link
Author

建议在文档里把debug相关的内容放在示例代码里

@chanxuehong
Copy link
Owner

出現 token is empty 應該是你用的方法不對!
打開debug你編譯的時候要加上tag,如:
go build -a -tags wechatdebug 你的項目路徑

@baiyuxiong
Copy link
Author

好的,我试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants