{"action":"created","issue":{"url":"https://api.github.com/repos/joeferraro/MavensMate/issues/466","labels_url":"https://api.github.com/repos/joeferraro/MavensMate/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/joeferraro/MavensMate/issues/466/comments","events_url":"https://api.github.com/repos/joeferraro/MavensMate/issues/466/events","html_url":"https://github.com/joeferraro/MavensMate/issues/466","id":94932573,"number":466,"title":"Debug Logging values not being honored when executing Apex via the \"Execute Apex ...\" dialog.","user":{"login":"stephenroden","id":1570902,"avatar_url":"https://avatars.githubusercontent.com/u/1570902?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenroden","html_url":"https://github.com/stephenroden","followers_url":"https://api.github.com/users/stephenroden/followers","following_url":"https://api.github.com/users/stephenroden/following{/other_user}","gists_url":"https://api.github.com/users/stephenroden/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenroden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenroden/subscriptions","organizations_url":"https://api.github.com/users/stephenroden/orgs","repos_url":"https://api.github.com/users/stephenroden/repos","events_url":"https://api.github.com/users/stephenroden/events{/privacy}","received_events_url":"https://api.github.com/users/stephenroden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-14T12:17:43Z","updated_at":"2015-08-27T15:31:07Z","closed_at":"2015-08-27T15:18:15Z","body":"Issue\r\n-----\r\n1. Debug Logging values not being honored when executing Apex via the \"Execute Apex ...\" dialog.\r\n2. No change in debug options between using tooling and not.\r\n\r\nConfiguration\r\n-------------\r\nSublime Text 3\r\nMavensmate for Sublime Test 4.0.5\r\nMavensmate API v0.2.41\r\nOpen on a Salesforce project.\r\n\r\nAssumptions\r\n-----------\r\nThat the first line of returned Salesforce logs indicate the log levels being applied.\r\nThat the logging options should differ between using tooling and not.\r\n\r\nTo repeat\r\n---------\r\nSelect Mavensmate / Execute Apex ...\r\n\r\nType in \r\nSystem.debug('Hello world');\r\nClick Execute.\r\n\r\nFirst line of debug log\r\n31.0 APEX_CODE,DEBUG;APEX_PROFILING,DEBUG;CALLOUT,INFO;DB,INFO;VALIDATION,INFO;WORKFLOW,INFO\r\n\r\nSelect Debug Options\r\nChange the logging levels on anything to something different.\r\nClick Execute\r\n\r\nFirst line of debug log\r\n31.0 APEX_CODE,DEBUG;APEX_PROFILING,DEBUG;CALLOUT,INFO;DB,INFO;VALIDATION,INFO;WORKFLOW,INFO\r\n\r\nNote that the two first lines are identical.\r\n\r\nChange the mm_compile_with_tooling_api value and repeat.  Causes identifical output.\r\nI would have expected a different set of flags at the very least.\r\n\r\nGoing to Salesforce console in the browser\r\nRepeating the process, and using open raw log to view the returned log, you get\r\n34.0 APEX_CODE,DEBUG;APEX_PROFILING,ERROR;CALLOUT,ERROR;DB,ERROR;SYSTEM,ERROR;VALIDATION,ERROR;VISUALFORCE,ERROR;WORKFLOW,ERROR\r\n\r\nand when I change the log levels ...\r\n\r\n34.0 APEX_CODE,DEBUG;APEX_PROFILING,ERROR;CALLOUT,ERROR;DB,FINEST;SYSTEM,ERROR;VALIDATION,ERROR;VISUALFORCE,ERROR;WORKFLOW,ERROR\r\n\r\nNote that DB value went from ERROR to FINEST.\r\n\r\nI'm assuming that the difference in the number of items between using the developer console and Mavensmate is related to using tooling or not.\r\nThis raises another related issue where the logging options in Mavensmate remain at six items whereas Salesforce console has eight.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joeferraro/MavensMate/issues/comments/135470055","html_url":"https://github.com/joeferraro/MavensMate/issues/466#issuecomment-135470055","issue_url":"https://api.github.com/repos/joeferraro/MavensMate/issues/466","id":135470055,"user":{"login":"ZTLoft","id":7863687,"avatar_url":"https://avatars.githubusercontent.com/u/7863687?v=3","gravatar_id":"","url":"https://api.github.com/users/ZTLoft","html_url":"https://github.com/ZTLoft","followers_url":"https://api.github.com/users/ZTLoft/followers","following_url":"https://api.github.com/users/ZTLoft/following{/other_user}","gists_url":"https://api.github.com/users/ZTLoft/gists{/gist_id}","starred_url":"https://api.github.com/users/ZTLoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZTLoft/subscriptions","organizations_url":"https://api.github.com/users/ZTLoft/orgs","repos_url":"https://api.github.com/users/ZTLoft/repos","events_url":"https://api.github.com/users/ZTLoft/events{/privacy}","received_events_url":"https://api.github.com/users/ZTLoft/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T15:31:07Z","updated_at":"2015-08-27T15:31:07Z","body":"Awesome!"}}