{"action":"created","issue":{"url":"https://api.github.com/repos/tediousjs/node-mssql/issues/697","repository_url":"https://api.github.com/repos/tediousjs/node-mssql","labels_url":"https://api.github.com/repos/tediousjs/node-mssql/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/tediousjs/node-mssql/issues/697/comments","events_url":"https://api.github.com/repos/tediousjs/node-mssql/issues/697/events","html_url":"https://github.com/tediousjs/node-mssql/issues/697","id":352519652,"node_id":"MDU6SXNzdWUzNTI1MTk2NTI=","number":697,"title":"Log ES6 Tagged template literals","user":{"login":"meiremans","id":3840355,"node_id":"MDQ6VXNlcjM4NDAzNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3840355?v=4","gravatar_id":"","url":"https://api.github.com/users/meiremans","html_url":"https://github.com/meiremans","followers_url":"https://api.github.com/users/meiremans/followers","following_url":"https://api.github.com/users/meiremans/following{/other_user}","gists_url":"https://api.github.com/users/meiremans/gists{/gist_id}","starred_url":"https://api.github.com/users/meiremans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meiremans/subscriptions","organizations_url":"https://api.github.com/users/meiremans/orgs","repos_url":"https://api.github.com/users/meiremans/repos","events_url":"https://api.github.com/users/meiremans/events{/privacy}","received_events_url":"https://api.github.com/users/meiremans/received_events","type":"User","site_admin":false},"labels":[{"id":51551616,"node_id":"MDU6TGFiZWw1MTU1MTYxNg==","url":"https://api.github.com/repos/tediousjs/node-mssql/labels/discussion","name":"discussion","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T12:38:18Z","updated_at":"2018-11-21T20:14:35Z","closed_at":"2018-11-21T20:14:35Z","author_association":"NONE","body":"Is there a way to log the full query when using the ES6 Tagged template literals?"},"comment":{"url":"https://api.github.com/repos/tediousjs/node-mssql/issues/comments/440795789","html_url":"https://github.com/tediousjs/node-mssql/issues/697#issuecomment-440795789","issue_url":"https://api.github.com/repos/tediousjs/node-mssql/issues/697","id":440795789,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDc5NTc4OQ==","user":{"login":"willmorgan","id":168688,"node_id":"MDQ6VXNlcjE2ODY4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/168688?v=4","gravatar_id":"","url":"https://api.github.com/users/willmorgan","html_url":"https://github.com/willmorgan","followers_url":"https://api.github.com/users/willmorgan/followers","following_url":"https://api.github.com/users/willmorgan/following{/other_user}","gists_url":"https://api.github.com/users/willmorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/willmorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willmorgan/subscriptions","organizations_url":"https://api.github.com/users/willmorgan/orgs","repos_url":"https://api.github.com/users/willmorgan/repos","events_url":"https://api.github.com/users/willmorgan/events{/privacy}","received_events_url":"https://api.github.com/users/willmorgan/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T20:14:35Z","updated_at":"2018-11-21T20:14:35Z","author_association":"COLLABORATOR","body":"If you switch on debugging by setting the `DEBUG` env var...\r\n\r\n```bash\r\nDEBUG=mssql:tedi node path/to/app.js\r\n```\r\n\r\n...you should be able to get the query through this debug message:\r\n\r\nhttps://github.com/tediousjs/node-mssql/blob/ee2777b4f088040f83fe87e09ca49b811d3c10f6/lib/tedious.js#L609\r\n\r\nThe `command` param is the actual SQL.\r\n\r\nHope this answers your question."}}
{"actor":{"display_login":"willmorgan"}}