{"action":"opened","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/4540","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/4540/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/4540/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/4540/events","html_url":"https://github.com/serverless/serverless/issues/4540","id":280303450,"number":4540,"title":"Documentation on SLS_DEBUG=*","user":{"login":"AlecBenzer","id":92369,"avatar_url":"https://avatars1.githubusercontent.com/u/92369?v=4","gravatar_id":"","url":"https://api.github.com/users/AlecBenzer","html_url":"https://github.com/AlecBenzer","followers_url":"https://api.github.com/users/AlecBenzer/followers","following_url":"https://api.github.com/users/AlecBenzer/following{/other_user}","gists_url":"https://api.github.com/users/AlecBenzer/gists{/gist_id}","starred_url":"https://api.github.com/users/AlecBenzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlecBenzer/subscriptions","organizations_url":"https://api.github.com/users/AlecBenzer/orgs","repos_url":"https://api.github.com/users/AlecBenzer/repos","events_url":"https://api.github.com/users/AlecBenzer/events{/privacy}","received_events_url":"https://api.github.com/users/AlecBenzer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-07T22:33:42Z","updated_at":"2017-12-07T22:33:42Z","closed_at":null,"author_association":"NONE","body":"https://github.com/serverless/serverless/blob/cb822ad505d817ee6230e0d149bc85177f6ac808/lib/classes/Error.js#L51\r\n\r\nRunning `SLS_DEBUG=*` in (some versions of?) bash sets `SLS_DEBUG` to the contents of the current directory:\r\n\r\n```shell\r\n$ mkdir /tmp/sls-env\r\n$ cd /tmp/sls-env\r\n$ touch foo bar baz\r\n$ ls\r\nbar     baz     foo\r\n$ SLS_DEBUG=*\r\n$ echo $SLS_DEBUG\r\nbar baz foo\r\n$ bash --version\r\nGNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)\r\nCopyright (C) 2007 Free Software Foundation, Inc.\r\n\r\nSince it seems like serverless only checks for the presence of the environment variable and not its contents, this should be fine, but seems kind of odd/maybe confusing. It also might cause an issue if run in an empty directory.\r\n\r\nShould documentation be modified to suggest doing `SLS_DEBUG=\"*\"` or `SLS_DEBUG=1`?\r\n"}}
{"actor":{"display_login":"AlecBenzer"}}