{"action":"created","issue":{"url":"https://api.github.com/repos/encharm/http-master/issues/99","labels_url":"https://api.github.com/repos/encharm/http-master/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/encharm/http-master/issues/99/comments","events_url":"https://api.github.com/repos/encharm/http-master/issues/99/events","html_url":"https://github.com/encharm/http-master/issues/99","id":58887794,"number":99,"title":"LogFileService: watcher is not defined","user":{"login":"modiho","id":1637196,"avatar_url":"https://avatars.githubusercontent.com/u/1637196?v=3","gravatar_id":"","url":"https://api.github.com/users/modiho","html_url":"https://github.com/modiho","followers_url":"https://api.github.com/users/modiho/followers","following_url":"https://api.github.com/users/modiho/following{/other_user}","gists_url":"https://api.github.com/users/modiho/gists{/gist_id}","starred_url":"https://api.github.com/users/modiho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modiho/subscriptions","organizations_url":"https://api.github.com/users/modiho/orgs","repos_url":"https://api.github.com/users/modiho/repos","events_url":"https://api.github.com/users/modiho/events{/privacy}","received_events_url":"https://api.github.com/users/modiho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-25T11:31:07Z","updated_at":"2015-02-25T23:07:31Z","closed_at":null,"body":"http-master crashes with\r\n\r\n```\r\nReferenceError: watcher is not defined\r\n    at FSWatcher.<anonymous> (/Users/Daniel/Projekte/Go-Lab/golab-git/server/la-server/node_modules/http-master/modules/services/logFile.js:34:15)\r\n    at FSWatcher.emit (events.js:110:17)\r\n    at FSEvent.FSWatcher._handle.onchange (fs.js:1163:12)\r\n```\r\n\r\n[Relevant file/line](https://github.com/encharm/http-master/blob/master/modules/services/logFile.js#L34).\r\n\r\nI am on OS X 10.10.2, using either node 0.12.0 or 0.10.29.\r\n\r\nThe error itself seems to be caused by a simple bug, but I wonder why an event with the `rename` action is triggered at all. When watching the files with `fs.watch` in another node process, no event with the `rename` action is triggered on the log files in the timeframe that the error occurs in.\r\n\r\nLet me know if I can help you debug further. For me, commenting out the affected line in the source code works since I don't require any reloading functionality."},"comment":{"url":"https://api.github.com/repos/encharm/http-master/issues/comments/76081413","html_url":"https://github.com/encharm/http-master/issues/99#issuecomment-76081413","issue_url":"https://api.github.com/repos/encharm/http-master/issues/99","id":76081413,"user":{"login":"Rush","id":115926,"avatar_url":"https://avatars.githubusercontent.com/u/115926?v=3","gravatar_id":"","url":"https://api.github.com/users/Rush","html_url":"https://github.com/Rush","followers_url":"https://api.github.com/users/Rush/followers","following_url":"https://api.github.com/users/Rush/following{/other_user}","gists_url":"https://api.github.com/users/Rush/gists{/gist_id}","starred_url":"https://api.github.com/users/Rush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rush/subscriptions","organizations_url":"https://api.github.com/users/Rush/orgs","repos_url":"https://api.github.com/users/Rush/repos","events_url":"https://api.github.com/users/Rush/events{/privacy}","received_events_url":"https://api.github.com/users/Rush/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T23:07:31Z","updated_at":"2015-02-25T23:07:31Z","body":"Sorry, I actually checked the code now and it's indeed a stupid bug."}}