{"action":"created","issue":{"url":"https://api.github.com/repos/Sagacify/python-bunyan/issues/2","repository_url":"https://api.github.com/repos/Sagacify/python-bunyan","labels_url":"https://api.github.com/repos/Sagacify/python-bunyan/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Sagacify/python-bunyan/issues/2/comments","events_url":"https://api.github.com/repos/Sagacify/python-bunyan/issues/2/events","html_url":"https://github.com/Sagacify/python-bunyan/pull/2","id":168727373,"number":2,"title":"add support for bunyan style log method: log.info({foo: 'bar'}, 'hi');","user":{"login":"complyue","id":15646573,"avatar_url":"https://avatars.githubusercontent.com/u/15646573?v=3","gravatar_id":"","url":"https://api.github.com/users/complyue","html_url":"https://github.com/complyue","followers_url":"https://api.github.com/users/complyue/followers","following_url":"https://api.github.com/users/complyue/following{/other_user}","gists_url":"https://api.github.com/users/complyue/gists{/gist_id}","starred_url":"https://api.github.com/users/complyue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/complyue/subscriptions","organizations_url":"https://api.github.com/users/complyue/orgs","repos_url":"https://api.github.com/users/complyue/repos","events_url":"https://api.github.com/users/complyue/events{/privacy}","received_events_url":"https://api.github.com/users/complyue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-01T19:52:22Z","updated_at":"2016-08-02T15:46:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Sagacify/python-bunyan/pulls/2","html_url":"https://github.com/Sagacify/python-bunyan/pull/2","diff_url":"https://github.com/Sagacify/python-bunyan/pull/2.diff","patch_url":"https://github.com/Sagacify/python-bunyan/pull/2.patch"},"body":"I'd like to continue using one of node-bunyan's log method style, but not working correctly in latest python-bunyan:\r\n\r\nFor\r\n`logger.info({'foo': 'bar'}, 'hi');\r\n`\r\n\r\n# expected:\r\n`{\"name\": \"__main__\", \"foo\": \"bar\", \"msg\": \"hi\", \"time\": \"2016-08-02T03:37:28Z\", \"hostname\": \"cymp.local\", \"level\": 30, \"pid\": 8643, \"v\": 0}\r\n`\r\n# but msg is empty:\r\n`{\"name\": \"__main__\", \"foo\": \"bar\", \"msg\": \"\", \"time\": \"2016-08-02T03:41:38Z\", \"hostname\": \"cymp.local\", \"level\": 30, \"pid\": 10003, \"v\": 0}\r\n`\r\n\r\nAnd I updated the code for it to work as expected.\r\n\r\nSo far `nosetests tests` passed for 3.5.2/2.7\r\n\r\n```\r\ncymp:python-bunyan cyue$ python -V\r\nPython 3.5.2 :: Anaconda 4.1.1 (x86_64)\r\ncymp:python-bunyan cyue$ nosetests tests \r\n.......\r\n----------------------------------------------------------------------\r\nRan 7 tests in 0.004s\r\n\r\nOK\r\n\r\n```\r\n```\r\ncymp:python-bunyan cyue$ python -V\r\nPython 2.7.10\r\ncymp:python-bunyan cyue$ nosetests tests \r\n.......\r\n----------------------------------------------------------------------\r\nRan 7 tests in 0.004s\r\n\r\nOK\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Sagacify/python-bunyan/issues/comments/236947049","html_url":"https://github.com/Sagacify/python-bunyan/pull/2#issuecomment-236947049","issue_url":"https://api.github.com/repos/Sagacify/python-bunyan/issues/2","id":236947049,"user":{"login":"complyue","id":15646573,"avatar_url":"https://avatars.githubusercontent.com/u/15646573?v=3","gravatar_id":"","url":"https://api.github.com/users/complyue","html_url":"https://github.com/complyue","followers_url":"https://api.github.com/users/complyue/followers","following_url":"https://api.github.com/users/complyue/following{/other_user}","gists_url":"https://api.github.com/users/complyue/gists{/gist_id}","starred_url":"https://api.github.com/users/complyue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/complyue/subscriptions","organizations_url":"https://api.github.com/users/complyue/orgs","repos_url":"https://api.github.com/users/complyue/repos","events_url":"https://api.github.com/users/complyue/events{/privacy}","received_events_url":"https://api.github.com/users/complyue/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T15:46:20Z","updated_at":"2016-08-02T15:46:20Z","body":"Okay, so I understand Stalin just mandatory <type>(<scope>): part before <subject>, right? If so I don't think I can spell type and scope well enough without close collaboration in your env. That leave my conformance for later consideration.\r\n\r\nBTW I'm now struggling to have bunyan log print well in PyCharm, I know you may not be using PyCharm, but I'd like to hear any ideas. Pls have a look at my SO question if you have time: http://stackoverflow.com/questions/38708246/ "}}
{"actor":{"display_login":"complyue"}}