{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/878","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/878/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/878/events","html_url":"https://github.com/serverless/serverless/issues/878","id":143147080,"number":878,"title":"v0.5 - function logs -t ignores declared function","user":{"login":"erikerikson","id":571200,"avatar_url":"https://avatars.githubusercontent.com/u/571200?v=3","gravatar_id":"","url":"https://api.github.com/users/erikerikson","html_url":"https://github.com/erikerikson","followers_url":"https://api.github.com/users/erikerikson/followers","following_url":"https://api.github.com/users/erikerikson/following{/other_user}","gists_url":"https://api.github.com/users/erikerikson/gists{/gist_id}","starred_url":"https://api.github.com/users/erikerikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikerikson/subscriptions","organizations_url":"https://api.github.com/users/erikerikson/orgs","repos_url":"https://api.github.com/users/erikerikson/repos","events_url":"https://api.github.com/users/erikerikson/events{/privacy}","received_events_url":"https://api.github.com/users/erikerikson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-24T04:20:55Z","updated_at":"2016-03-24T04:30:45Z","closed_at":null,"body":"Executed (cwd is project root):\r\n`$sls function logs -s [stage] -r [region] -i 500 -t [functionName]`\r\n\r\nExpected: logs for the declared function (`[functionName]`).\r\n\r\nObserved:\r\n```\r\n/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:49\r\n        fn = function () { throw arg; };\r\n                           ^\r\n\r\nServerlessError: You must be in a function folder to run this command\r\n    at new ServerlessError (/usr/local/lib/node_modules/serverless/lib/Error.js:17:11)\r\n    at FunctionLogs._validateAndPrepare (/usr/local/lib/node_modules/serverless/lib/actions/FunctionLogs.js:110:17)\r\nFrom previous event:\r\n    at FunctionLogs.functionLogs (/usr/local/lib/node_modules/serverless/lib/actions/FunctionLogs.js:95:10)\r\nFrom previous event:\r\n    at /usr/local/lib/node_modules/serverless/lib/Serverless.js:181:31\r\n    at Array.reduce (native)\r\n    at /usr/local/lib/node_modules/serverless/lib/Serverless.js:180:32\r\nFrom previous event:\r\n    at Serverless._execute (/usr/local/lib/node_modules/serverless/lib/Serverless.js:178:12)\r\n    at Serverless.actions.(anonymous function) (/usr/local/lib/node_modules/serverless/lib/Serverless.js:424:20)\r\n    at Serverless.command (/usr/local/lib/node_modules/serverless/lib/Serverless.js:393:38)\r\n    at /usr/local/lib/node_modules/serverless/bin/serverless:19:16\r\n    at processImmediate [as _immediateCallback] (timers.js:383:17)\r\nFrom previous event:\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/serverless/bin/serverless:18:4)\r\n    at Module._compile (module.js:435:26)\r\n    at Object.Module._extensions..js (module.js:442:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Function.Module.runMain (module.js:467:10)\r\n    at startup (node.js:136:18)\r\n    at node.js:963:3\r\n```"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/200659894","html_url":"https://github.com/serverless/serverless/issues/878#issuecomment-200659894","issue_url":"https://api.github.com/repos/serverless/serverless/issues/878","id":200659894,"user":{"login":"erikerikson","id":571200,"avatar_url":"https://avatars.githubusercontent.com/u/571200?v=3","gravatar_id":"","url":"https://api.github.com/users/erikerikson","html_url":"https://github.com/erikerikson","followers_url":"https://api.github.com/users/erikerikson/followers","following_url":"https://api.github.com/users/erikerikson/following{/other_user}","gists_url":"https://api.github.com/users/erikerikson/gists{/gist_id}","starred_url":"https://api.github.com/users/erikerikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikerikson/subscriptions","organizations_url":"https://api.github.com/users/erikerikson/orgs","repos_url":"https://api.github.com/users/erikerikson/repos","events_url":"https://api.github.com/users/erikerikson/events{/privacy}","received_events_url":"https://api.github.com/users/erikerikson/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T04:30:45Z","updated_at":"2016-03-24T04:30:45Z","body":"^ confirmed"}}