{"action":"created","issue":{"url":"https://api.github.com/repos/box/box-python-sdk/issues/375","repository_url":"https://api.github.com/repos/box/box-python-sdk","labels_url":"https://api.github.com/repos/box/box-python-sdk/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/box/box-python-sdk/issues/375/comments","events_url":"https://api.github.com/repos/box/box-python-sdk/issues/375/events","html_url":"https://github.com/box/box-python-sdk/issues/375","id":387315943,"node_id":"MDU6SXNzdWUzODczMTU5NDM=","number":375,"title":"Bunch of logs go to the stdout","user":{"login":"joanff","id":16809448,"node_id":"MDQ6VXNlcjE2ODA5NDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/16809448?v=4","gravatar_id":"","url":"https://api.github.com/users/joanff","html_url":"https://github.com/joanff","followers_url":"https://api.github.com/users/joanff/followers","following_url":"https://api.github.com/users/joanff/following{/other_user}","gists_url":"https://api.github.com/users/joanff/gists{/gist_id}","starred_url":"https://api.github.com/users/joanff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joanff/subscriptions","organizations_url":"https://api.github.com/users/joanff/orgs","repos_url":"https://api.github.com/users/joanff/repos","events_url":"https://api.github.com/users/joanff/events{/privacy}","received_events_url":"https://api.github.com/users/joanff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-04T14:36:49Z","updated_at":"2018-12-07T21:05:03Z","closed_at":"2018-12-07T20:58:08Z","author_association":"NONE","body":"### Description of the Issue\r\nWhen my project has set up logging\r\nBunch of boxsdk logs show in my stdout\r\nAny idea how to avoid this?\r\n\r\n```\r\nINFO:boxsdk.network.default_network:GET https://api.box.com/2.0/files/361614688377/content {'headers': {u'As-User': '1992679967',\r\n             u'Authorization': u'---vvYK',\r\n             u'User-Agent': u'box-python-sdk-2.0.0',\r\n             u'X-Box-UA': u'agent=box-python-sdk/2.0.0; env=python/2.7.12'},\r\n 'params': None,\r\n 'stream': True}\r\nINFO:boxsdk.network.default_network:\"GET https://dl.bo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ip8ozLPEQfEc5EL0YfAft8AHm1WQJCceCAG2DMHW9DbgciG0QD3Htv1bdbVOo9B32emvbGMd0ixHSg2kU8We2OjBKt073MXkWKl_KWlW4ehq1OdQai-N_T7_BewwRNsLmOQ49l9Ln3Nfv1NtKk_yZ5-5kMo1Hj6CnZ1eJKs9TlZS6BFhgK8wSzrT8kC_peRa9yNcPNsItI5thyp5QAwqoh-ozaKPYYy863cq_UwyF4BRKMeSsxBYw../download\" 200 2296\r\n{'Content-Length': '2296', 'X-Robots-Tag': 'noindex, nofollow', 'Content-Disposition': 'attachment;filename=\"FuturesBlotter_Tags_20181204093000.csv\";filename*=UTF-8\\'\\'FuturesBlotter_Tags_20181204093000.csv', 'Content-Encoding': 'gzip', 'Encryption_Policy_Id': '0', 'Accept-Ranges': 'bytes', 'Strict-Transport-Security': 'max-age=31536000', 'X-Original-Content-Length': '18791', 'X-Content-Type-Options': 'nosniff', 'Connection': 'keep-alive', 'Cache-Control': 'private', 'Date': 'Tue, 04 Dec 2018 14:32:43 GMT', 'Content-Type': 'text/csv', 'Age': '0'}\r\n<File download contents unavailable for logging>\r\n\r\n```\r\n\r\n### Versions Used\r\nBox Python SDK: 2.0.0\r\nPython: python 2.7\r\n\r\n### Steps to Reproduce\r\n1. create a project\r\n2. in the __init__.py, set up logging\r\n```import logging\r\nfrom logging.handlers import SysLogHandler\r\n\r\n\r\nDEBUG = False\r\n\r\n\r\nFORMATTER = logging.Formatter('%(asctime)s %(name)s %(message)s', datefmt = '%m/%d/%Y %I:%M:%S %p')\r\nlogger = logging.getLogger(__name__)\r\nif DEBUG:\r\n    logger.setLevel(logging.DEBUG)\r\nelse:\r\n    logger.setLevel(logging.INFO)\r\nfile_handler = logging.FileHandler('./log/athops.log')\r\n# file_handler = SysLogHandler('/dev/log')\r\nfile_handler.setFormatter(FORMATTER)\r\nlogger.addHandler(file_handler)\r\n```\r\n\r\n3.use boxsdk inside it to get some folder\r\n\r\n\r\n[sdk-docs]: ./docs/usage\r\n[api-docs]: https://developer.box.com/docs"},"comment":{"url":"https://api.github.com/repos/box/box-python-sdk/issues/comments/445365063","html_url":"https://github.com/box/box-python-sdk/issues/375#issuecomment-445365063","issue_url":"https://api.github.com/repos/box/box-python-sdk/issues/375","id":445365063,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTM2NTA2Mw==","user":{"login":"mattwiller","id":2695901,"node_id":"MDQ6VXNlcjI2OTU5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/2695901?v=4","gravatar_id":"","url":"https://api.github.com/users/mattwiller","html_url":"https://github.com/mattwiller","followers_url":"https://api.github.com/users/mattwiller/followers","following_url":"https://api.github.com/users/mattwiller/following{/other_user}","gists_url":"https://api.github.com/users/mattwiller/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwiller/subscriptions","organizations_url":"https://api.github.com/users/mattwiller/orgs","repos_url":"https://api.github.com/users/mattwiller/repos","events_url":"https://api.github.com/users/mattwiller/events{/privacy}","received_events_url":"https://api.github.com/users/mattwiller/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T21:05:03Z","updated_at":"2018-12-07T21:05:03Z","author_association":"MEMBER","body":"@joanff Glad you have a solution — thanks for letting us know how you got it working!"}}
{"actor":{"display_login":"mattwiller"}}