{"action":"created","issue":{"url":"https://api.github.com/repos/sailorproject/sailor/issues/148","repository_url":"https://api.github.com/repos/sailorproject/sailor","labels_url":"https://api.github.com/repos/sailorproject/sailor/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/sailorproject/sailor/issues/148/comments","events_url":"https://api.github.com/repos/sailorproject/sailor/issues/148/events","html_url":"https://github.com/sailorproject/sailor/pull/148","id":207815323,"number":148,"title":"feat(db): added support for query logging","user":{"login":"soapdog","id":23247,"avatar_url":"https://avatars.githubusercontent.com/u/23247?v=3","gravatar_id":"","url":"https://api.github.com/users/soapdog","html_url":"https://github.com/soapdog","followers_url":"https://api.github.com/users/soapdog/followers","following_url":"https://api.github.com/users/soapdog/following{/other_user}","gists_url":"https://api.github.com/users/soapdog/gists{/gist_id}","starred_url":"https://api.github.com/users/soapdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soapdog/subscriptions","organizations_url":"https://api.github.com/users/soapdog/orgs","repos_url":"https://api.github.com/users/soapdog/repos","events_url":"https://api.github.com/users/soapdog/events{/privacy}","received_events_url":"https://api.github.com/users/soapdog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-15T14:14:34Z","updated_at":"2017-02-15T14:22:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sailorproject/sailor/pulls/148","html_url":"https://github.com/sailorproject/sailor/pull/148","diff_url":"https://github.com/sailorproject/sailor/pull/148.diff","patch_url":"https://github.com/sailorproject/sailor/pull/148.patch"},"body":"Adds support for database query logging for debugging purposes.\r\n\r\nIf the database configuration has ```log_database_queries = true``` then a file called ```runtime/logs/query.log``` is appended with the SQL queries issued from Sailor Models. At this point only the SQL queries are recorded, result values and location of the queries might be added in the future.\r\n\r\nChanges were made to the ```db``` folder, the blank app and the configuration template."},"comment":{"url":"https://api.github.com/repos/sailorproject/sailor/issues/comments/280023237","html_url":"https://github.com/sailorproject/sailor/pull/148#issuecomment-280023237","issue_url":"https://api.github.com/repos/sailorproject/sailor/issues/148","id":280023237,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2017-02-15T14:22:33Z","updated_at":"2017-02-15T14:22:33Z","body":"\n[![Coverage Status](https://coveralls.io/builds/10164337/badge)](https://coveralls.io/builds/10164337)\n\nCoverage decreased (-69.4%) to 13.263% when pulling **9a8534ea611522c51b3c36e44b9263d9a79d47a3 on soapdog:b-enhancement-database-query-log** into **2aa102692038ba93554f3a7c984d9b8ec19d8d51 on sailorproject:master**.\n"}}
{"actor":{"display_login":"coveralls"}}