{"action":"created","issue":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/715","labels_url":"https://api.github.com/repos/foosel/OctoPrint/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/issues/715/comments","events_url":"https://api.github.com/repos/foosel/OctoPrint/issues/715/events","html_url":"https://github.com/foosel/OctoPrint/issues/715","id":54034484,"number":715,"title":"[Support] AttributeError: 'CommandTrigger' object has no attribute 'logger'","user":{"login":"twproject","id":7046065,"avatar_url":"https://avatars.githubusercontent.com/u/7046065?v=3","gravatar_id":"","url":"https://api.github.com/users/twproject","html_url":"https://github.com/twproject","followers_url":"https://api.github.com/users/twproject/followers","following_url":"https://api.github.com/users/twproject/following{/other_user}","gists_url":"https://api.github.com/users/twproject/gists{/gist_id}","starred_url":"https://api.github.com/users/twproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twproject/subscriptions","organizations_url":"https://api.github.com/users/twproject/orgs","repos_url":"https://api.github.com/users/twproject/repos","events_url":"https://api.github.com/users/twproject/events{/privacy}","received_events_url":"https://api.github.com/users/twproject/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-12T09:39:25Z","updated_at":"2015-01-14T15:10:38Z","closed_at":"2015-01-12T14:51:02Z","body":"I'm using Devel version of Octoprint on a OctoPi enviroment\r\nVersion: 1.2.0-dev-386-g5a3df19 (devel branch)\r\n\r\nOn config.yaml i created following example an events trigger but it don't work and report errors:\r\n\r\nconfig.yaml\r\n```\r\nevents:\r\n  enabled: true\r\n  subscriptions:\r\n  - event: Connected\r\n    command:\r\n    - M115\r\n    - M117 printer connected!\r\n    type: gcode\r\n```\r\n\r\nlog:\r\n\r\n```\r\n2015-01-12 09:10:57,066 - octoprint.events - ERROR - Got an exception while sending event Connected (Payload: {'baudrate': 250000, 'port': u'/dev/ttyACM0'}) to <bound method CommandTrigger.eventCallback of <octoprint.events.CommandTrigger object at 0x28d35b0>>\r\nTraceback (most recent call last):\r\n  File \"/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_386_g5a3df19-py2.7.egg/octoprint/events.py\", line 121, in _work\r\n    listener(event, payload)\r\n  File \"/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_386_g5a3df19-py2.7.egg/octoprint/events.py\", line 282, in eventCallback\r\n    self.executeCommand(processedCommand, commandType)\r\n  File \"/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_386_g5a3df19-py2.7.egg/octoprint/events.py\", line 290, in executeCommand\r\n    self._executeGcodeCommand(command)\r\n  File \"/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_386_g5a3df19-py2.7.egg/octoprint/events.py\", line 311, in _executeGcodeCommand\r\n    self.logger.debug(\"Executing GCode commands: %r\" % command)\r\nAttributeError: 'CommandTrigger' object has no attribute 'logger'\r\n```"},"comment":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/comments/69929704","html_url":"https://github.com/foosel/OctoPrint/issues/715#issuecomment-69929704","issue_url":"https://api.github.com/repos/foosel/OctoPrint/issues/715","id":69929704,"user":{"login":"twproject","id":7046065,"avatar_url":"https://avatars.githubusercontent.com/u/7046065?v=3","gravatar_id":"","url":"https://api.github.com/users/twproject","html_url":"https://github.com/twproject","followers_url":"https://api.github.com/users/twproject/followers","following_url":"https://api.github.com/users/twproject/following{/other_user}","gists_url":"https://api.github.com/users/twproject/gists{/gist_id}","starred_url":"https://api.github.com/users/twproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twproject/subscriptions","organizations_url":"https://api.github.com/users/twproject/orgs","repos_url":"https://api.github.com/users/twproject/repos","events_url":"https://api.github.com/users/twproject/events{/privacy}","received_events_url":"https://api.github.com/users/twproject/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T15:10:38Z","updated_at":"2015-01-14T15:10:38Z","body":"now it works fine"}}