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

在命令行使用easywechat如何关闭日志 #601

Closed
liucg1995 opened this issue Mar 2, 2017 · 7 comments · Fixed by #705
Closed

在命令行使用easywechat如何关闭日志 #601

liucg1995 opened this issue Mar 2, 2017 · 7 comments · Fixed by #705
Assignees

Comments

@liucg1995
Copy link

liucg1995 commented Mar 2, 2017

我使用laravel 队列 + easywechat 发送模板消息,我在配置数组中 将debug 关闭了,但还是会在命令行出现以下提示,并会记录到日志中。

[2017-03-02 08:46:30] EasyWeChat.DEBUG: Client Request: {"url":"https://api.weixin.qq.com/cgi-bin/message/template/send","method":"POST","options":{"curl":{"113":1},"query":[],"body":"{\"touser\":\"oc9gZv-r6pFMGMLP1srG3271xWPU\",\"template_id\":\"pSteXJ05NEofdMpAbIpUXul7d9q8ub-QevfSsLDqd6k\",\"url\":\"http:\\/\
/admin.test.com\/mass\/test","topcolor":"#FF0000","data":{"orderMoneySum":{"value":"10","color":"#173177"},"orderProductName":{"value":"10","color":"#173177"}}}","headers":{"content-type":"application/json"}}} []
[2017-03-02 08:46:30] EasyWeChat.DEBUG: Request: POST https://api.weixin.qq.com/cgi-bin/message/template/send {"curl":{"113":1},"handler":{},"synchronous":true,"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"http_errors":true,"decode_content":true
,"verify":true,"cookies":false} [] []
[2017-03-02 08:46:30] EasyWeChat.DEBUG: Request headers:{"Content-Length":["276"],"User-Agent":["GuzzleHttp/6.2.1 curl/7.49.1 PHP/7.0.9"],"Host":["api.weixin.qq.com"],"content-type":["application/json"]} [] []
[2017-03-02 08:46:31] EasyWeChat.DEBUG: API response: {"Status":200,"Reason":"OK","Headers":{"Connection":["keep-alive"],"Content-Type":["application/json; encoding=utf-8"],"Date":["Thu, 02 Mar 2017 08:46:32 GMT"],"Content-Length":["45"]},"Body":"{"errcode":0,"errmsg":"ok","msgid":423775628}"} []
[2017-03-02 08:46:31] EasyWeChat.DEBUG: API response decoded: {"contents":{"errcode":0,"errmsg":"ok","msgid":423775628}}

@overtrue
Copy link
Collaborator

overtrue commented Mar 2, 2017

'level' => 'debug', // 改这里

@overtrue
Copy link
Collaborator

overtrue commented Mar 2, 2017

改成 error

@liucg1995
Copy link
Author

已经改了,不知道为什么命令行上面还是有日志

@overtrue
Copy link
Collaborator

overtrue commented Mar 2, 2017

@valitors 好,我看解决这个问题

@liucg1995
Copy link
Author

你在这两个地方加个判断吧,我把这注释了,就不出现了。这是两个截图

qq 20170302174523
qq 20170302174538

@mingyoung
Copy link
Collaborator

@valitors

#705

3fd5e35 你试试这样能解决不?

overtrue pushed a commit that referenced this issue May 18, 2017
never615 added a commit to never615/wechat that referenced this issue May 22, 2017
* 'master' of github.com:overtrue/wechat:
  Apply fixes from StyleCI (w7corp#706)
  Fix w7corp#601 (w7corp#705)
  Fix CS.
  add defaultColor
never615 added a commit to never615/wechat that referenced this issue May 22, 2017
* develop:
  Apply fixes from StyleCI (w7corp#706)
  Fix w7corp#601 (w7corp#705)
  Fix CS.
  add defaultColor
  Add docblocks.
  Fix (w7corp#702)
  Add api. (w7corp#700)
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

Successfully merging a pull request may close this issue.

3 participants