{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6918","repository_url":"https://api.github.com/repos/mozilla/addons-frontend","labels_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6918/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6918/comments","events_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6918/events","html_url":"https://github.com/mozilla/addons-frontend/issues/6918","id":380277342,"node_id":"MDU6SXNzdWUzODAyNzczNDI=","number":6918,"title":"Review usage of log statements","user":{"login":"kumar303","id":55398,"node_id":"MDQ6VXNlcjU1Mzk4","avatar_url":"https://avatars1.githubusercontent.com/u/55398?v=4","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"labels":[{"id":357492876,"node_id":"MDU6TGFiZWwzNTc0OTI4NzY=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/component:%20code%20quality","name":"component: code quality","color":"107c05","default":false,"description":null},{"id":820355113,"node_id":"MDU6TGFiZWw4MjAzNTUxMTM=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/priority:%20p4","name":"priority: p4","color":"5a0002","default":false,"description":"Lower priority backlog. These are potentially good candidates for contributions."},{"id":430754745,"node_id":"MDU6TGFiZWw0MzA3NTQ3NDU=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/qa:%20not%20needed","name":"qa: not needed","color":"fef1af","default":false,"description":null},{"id":350682014,"node_id":"MDU6TGFiZWwzNTA2ODIwMTQ=","url":"https://api.github.com/repos/mozilla/addons-frontend/labels/triaged","name":"triaged","color":"eeeeee","default":false,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-13T15:22:46Z","updated_at":"2020-01-01T12:27:57Z","closed_at":null,"author_association":"MEMBER","body":"Review usage of all log statements with these guidelines in mind. If some logging doesn't follow these guidelines then change them.\r\n\r\n- `log.error()` goes to Sentry and should only be used for errors that indicate an application error that can be fixed\r\n  - For example, if a user enters data that fails form validation, this should not result in `log.error()` because it's not an application error\r\n- By default, all uncaught errors get reported to Sentry. Thus, we should not add `log.error()` messages if the error will be thrown; this would create duplicate entries in Sentry\r\n- `log.debug()` messages are hidden by default in local and hosted development. If any debug statements would be useful to track down problems then consider changing them to `warn` or `info`. However, too much logging creates noise so use it in moderation.\r\n- Any log statement at `info` or above should never pass complex objects as arguments. This might result in a memory related DOS if the complex objects are very large (see https://github.com/mozilla/addons-frontend/issues/6369)"},"comment":{"url":"https://api.github.com/repos/mozilla/addons-frontend/issues/comments/570049394","html_url":"https://github.com/mozilla/addons-frontend/issues/6918#issuecomment-570049394","issue_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/6918","id":570049394,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MDA0OTM5NA==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2020-01-01T12:27:57Z","updated_at":"2020-01-01T12:27:57Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on  the issue with further details. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}