LockerProject / Locker

Locker - the "me" platform
http://lockerproject.org/
BSD 3-Clause "New" or "Revised" License
1.07k stars 123 forks source link

GitHub connector storing LESS errors in the database #871

Closed othiym23 closed 12 years ago

othiym23 commented 12 years ago
25 Feb 20:55:59 - info: [mongo] Sat Feb 25 20:55:59 [conn1] update locker.asynclets_github_event query: { id: "1523557383" } update: { type: "IssuesEvent", public: true, org: { url: "https://api.github.com/orgs/" }, repo: { id: 527644, url: "https://api.github.com/repos/cloudhead/less.js", name: "cloudhead/less.js" }, actor: { gravatar_id: "eda2ca91b19ef0f4f60a068a8bd2c40c", id: 15198, url: "https://api.github.com/users/leafo", login: "leafo" }, created_at: "2012-02-25T20:18:03Z", payload: { action: "opened", issue: { number: 663, pull_request: { diff_url: null, patch_url: null, html_url: null }, created_at: "2012-02-25T20:18:01Z", body: "    what ::hello {  color: red;  }
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] compiles to
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo]     what::hello {
25 Feb 20:55:59 - info: [mongo]       color: red;
25 Feb 20:55:59 - info: [mongo]     }
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] Similarly, same problem when nesting blocks:
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] ...", title: "whitespace before :: in selector not preserved", comments: 0, updated_at: "2012-02-25T20:18:01Z", url: "https://api.github.com/repos/cloudhead/less.js/issues/663", id: 3387118, assignee: null, milestone: null, closed_at: null, labels: {}, user: { avatar_url: "https://secure.gravatar.com/avatar/eda2ca91b19ef0f4f60a068a8bd2c40c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png", gravatar_id: "eda2ca91b19ef0f4f60a068a8bd2c40c", url: "https://api.github.com/users/leafo", id: 15198, login: "leafo" }, html_url: "https://github.com/cloudhead/less.js/issues/663", state: "open" } }, id: "1523557383" } upsert:1 205ms
25 Feb 20:55:59 - info: [mongo] Sat Feb 25 20:55:59 [conn1] command locker.$cmd command: { findandmodify: "asynclets_github_event", query: { id: "1523557383" }, sort: { _id: 1 }, new: 0, remove: 0, upsert: 1, update: { type: "IssuesEvent", public: true, org: { url: "https://api.github.com/orgs/" }, repo: { id: 527644, url: "https://api.github.com/repos/cloudhead/less.js", name: "cloudhead/less.js" }, actor: { gravatar_id: "eda2ca91b19ef0f4f60a068a8bd2c40c", id: 15198, url: "https://api.github.com/users/leafo", login: "leafo" }, created_at: "2012-02-25T20:18:03Z", payload: { action: "opened", issue: { number: 663, pull_request: { diff_url: null, patch_url: null, html_url: null }, created_at: "2012-02-25T20:18:01Z", body: "    what ::hello {  color: red;  }
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] compiles to
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo]     what::hello {
25 Feb 20:55:59 - info: [mongo]       color: red;
25 Feb 20:55:59 - info: [mongo]     }
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] Similarly, same problem when nesting blocks:
25 Feb 20:55:59 - info: [mongo] 
25 Feb 20:55:59 - info: [mongo] ...", title: "whitespace before :: in selector not preserved", comments: 0, updated_at: "2012-02-25T20:18:01Z", url: "https://api.github.com/repos/cloudhead/less.js/issues/663", id: 3387118, assignee: null, milestone: null, closed_at: null, labels: {}, user: { avatar_url: "https://secure.gravatar.com/avatar/eda2ca91b19ef0f4f60a068a8bd2c40c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png", gravatar_id: "eda2ca91b19ef0f4f60a068a8bd2c40c", url: "https://api.github.com/users/leafo", id: 15198, login: "leafo" }, html_url: "https://github.com/cloudhead/less.js/issues/663", state: "open" } }, id: "1523557383" } } ntoreturn:1 reslen:153 235ms
mdz commented 12 years ago

This looked bizarre at first, but on second look, I think it's totally normal. The text comes from the content of https://github.com/cloudhead/less.js/issues/663, and mongo is logging it because the insert was "slow" (205ms)