{"action":"created","issue":{"url":"https://api.github.com/repos/cargomedia/cm/issues/2334","repository_url":"https://api.github.com/repos/cargomedia/cm","labels_url":"https://api.github.com/repos/cargomedia/cm/issues/2334/labels{/name}","comments_url":"https://api.github.com/repos/cargomedia/cm/issues/2334/comments","events_url":"https://api.github.com/repos/cargomedia/cm/issues/2334/events","html_url":"https://github.com/cargomedia/cm/pull/2334","id":176590783,"number":2334,"title":"Improve JS Error reports","user":{"login":"zazabe","id":401598,"avatar_url":"https://avatars.githubusercontent.com/u/401598?v=3","gravatar_id":"","url":"https://api.github.com/users/zazabe","html_url":"https://github.com/zazabe","followers_url":"https://api.github.com/users/zazabe/followers","following_url":"https://api.github.com/users/zazabe/following{/other_user}","gists_url":"https://api.github.com/users/zazabe/gists{/gist_id}","starred_url":"https://api.github.com/users/zazabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazabe/subscriptions","organizations_url":"https://api.github.com/users/zazabe/orgs","repos_url":"https://api.github.com/users/zazabe/repos","events_url":"https://api.github.com/users/zazabe/events{/privacy}","received_events_url":"https://api.github.com/users/zazabe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cargomedia/cm/labels/selfmade","name":"selfmade","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"zazabe","id":401598,"avatar_url":"https://avatars.githubusercontent.com/u/401598?v=3","gravatar_id":"","url":"https://api.github.com/users/zazabe","html_url":"https://github.com/zazabe","followers_url":"https://api.github.com/users/zazabe/followers","following_url":"https://api.github.com/users/zazabe/following{/other_user}","gists_url":"https://api.github.com/users/zazabe/gists{/gist_id}","starred_url":"https://api.github.com/users/zazabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazabe/subscriptions","organizations_url":"https://api.github.com/users/zazabe/orgs","repos_url":"https://api.github.com/users/zazabe/repos","events_url":"https://api.github.com/users/zazabe/events{/privacy}","received_events_url":"https://api.github.com/users/zazabe/received_events","type":"User","site_admin":false},"assignees":[{"login":"zazabe","id":401598,"avatar_url":"https://avatars.githubusercontent.com/u/401598?v=3","gravatar_id":"","url":"https://api.github.com/users/zazabe","html_url":"https://github.com/zazabe","followers_url":"https://api.github.com/users/zazabe/followers","following_url":"https://api.github.com/users/zazabe/following{/other_user}","gists_url":"https://api.github.com/users/zazabe/gists{/gist_id}","starred_url":"https://api.github.com/users/zazabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazabe/subscriptions","organizations_url":"https://api.github.com/users/zazabe/orgs","repos_url":"https://api.github.com/users/zazabe/repos","events_url":"https://api.github.com/users/zazabe/events{/privacy}","received_events_url":"https://api.github.com/users/zazabe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-09-13T09:20:21Z","updated_at":"2016-09-15T09:52:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cargomedia/cm/pulls/2334","html_url":"https://github.com/cargomedia/cm/pull/2334","diff_url":"https://github.com/cargomedia/cm/pull/2334.diff","patch_url":"https://github.com/cargomedia/cm/pull/2334.patch"},"body":"- more data are reported for JS error:\r\n```js\r\n{\r\n  uid: string,             // unique ID, useful to get previous errors since the page load\r\n  counter: int,            // error counter, since the page load\r\n  previousLog: string,     // previous cm.logger logs (includes cm.debug.log / cm.error.log)\r\n  url: string,             // page url\r\n  error: {\r\n    message: string,          // error message\r\n    type: string,             // error class name\r\n    stack: string,            // error stacktrace\r\n    metaInfo: object|null,    // metainfo (for CM_Exception*)\r\n    source: {                 // error source file / line / column\r\n      url: string,\r\n      line: int,\r\n      col: int\r\n    }\r\n  }\r\n}\r\n```\r\n- the same data structure is used on the client and on the server side\r\n- JS Error are logged on the server side with the prefix `JS Error - ` + `error.message`\r\n- [js-logger](https://github.com/jonnyreeves/js-logger) is used as a logger facility\r\n- all logs are always recorded on the client side, with a 5min retention, but `console.*` is only used when `cm.logger.configure({dev: true})`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cargomedia/cm/issues/comments/247285451","html_url":"https://github.com/cargomedia/cm/pull/2334#issuecomment-247285451","issue_url":"https://api.github.com/repos/cargomedia/cm/issues/2334","id":247285451,"user":{"login":"zazabe","id":401598,"avatar_url":"https://avatars.githubusercontent.com/u/401598?v=3","gravatar_id":"","url":"https://api.github.com/users/zazabe","html_url":"https://github.com/zazabe","followers_url":"https://api.github.com/users/zazabe/followers","following_url":"https://api.github.com/users/zazabe/following{/other_user}","gists_url":"https://api.github.com/users/zazabe/gists{/gist_id}","starred_url":"https://api.github.com/users/zazabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazabe/subscriptions","organizations_url":"https://api.github.com/users/zazabe/orgs","repos_url":"https://api.github.com/users/zazabe/repos","events_url":"https://api.github.com/users/zazabe/events{/privacy}","received_events_url":"https://api.github.com/users/zazabe/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T09:52:12Z","updated_at":"2016-09-15T09:52:12Z","body":"about the stacktrace improvement: https://github.com/cargomedia/cm/issues/2336"}}
{"actor":{"display_login":"zazabe"}}