{"action":"opened","issue":{"url":"https://api.github.com/repos/rtheunissen/guzzle-log-middleware/issues/3","labels_url":"https://api.github.com/repos/rtheunissen/guzzle-log-middleware/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rtheunissen/guzzle-log-middleware/issues/3/comments","events_url":"https://api.github.com/repos/rtheunissen/guzzle-log-middleware/issues/3/events","html_url":"https://github.com/rtheunissen/guzzle-log-middleware/issues/3","id":117177055,"number":3,"title":"Having a debug function in the app will break the logger","user":{"login":"Spir","id":213191,"avatar_url":"https://avatars.githubusercontent.com/u/213191?v=3","gravatar_id":"","url":"https://api.github.com/users/Spir","html_url":"https://github.com/Spir","followers_url":"https://api.github.com/users/Spir/followers","following_url":"https://api.github.com/users/Spir/following{/other_user}","gists_url":"https://api.github.com/users/Spir/gists{/gist_id}","starred_url":"https://api.github.com/users/Spir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spir/subscriptions","organizations_url":"https://api.github.com/users/Spir/orgs","repos_url":"https://api.github.com/users/Spir/repos","events_url":"https://api.github.com/users/Spir/events{/privacy}","received_events_url":"https://api.github.com/users/Spir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T17:30:05Z","updated_at":"2015-11-16T17:30:05Z","closed_at":null,"body":"Not sure what to think about this. I use the debugbar http://phpdebugbar.com/ and have a debug function to quickly add some data to the bar. I have set guzzle to use the log middleware with a level of \\Psr\\Log\\LogLevel::DEBUG So when a log is being saved that if pass and then it screw : \r\n\r\n    if (is_callable($this->logLevel)) {\r\n        return call_user_func($this->logLevel, $response);\r\n    }\r\n\r\nsee: \r\nhttps://github.com/rtheunissen/guzzle-log-middleware/blob/master/src/Logger.php#L188\r\n\r\nWhat you guys think of this? Should I namespace my debug function?"}}