{"action":"opened","issue":{"url":"https://api.github.com/repos/FGM/filog/issues/8","repository_url":"https://api.github.com/repos/FGM/filog","labels_url":"https://api.github.com/repos/FGM/filog/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/FGM/filog/issues/8/comments","events_url":"https://api.github.com/repos/FGM/filog/issues/8/events","html_url":"https://github.com/FGM/filog/issues/8","id":188742332,"number":8,"title":"Errors when running with --production flag","user":{"login":"arggh","id":17210302,"avatar_url":"https://avatars.githubusercontent.com/u/17210302?v=3","gravatar_id":"","url":"https://api.github.com/users/arggh","html_url":"https://github.com/arggh","followers_url":"https://api.github.com/users/arggh/followers","following_url":"https://api.github.com/users/arggh/following{/other_user}","gists_url":"https://api.github.com/users/arggh/gists{/gist_id}","starred_url":"https://api.github.com/users/arggh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arggh/subscriptions","organizations_url":"https://api.github.com/users/arggh/orgs","repos_url":"https://api.github.com/users/arggh/repos","events_url":"https://api.github.com/users/arggh/events{/privacy}","received_events_url":"https://api.github.com/users/arggh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-11T11:40:57Z","updated_at":"2016-11-11T11:40:57Z","closed_at":null,"body":"Reproduction here:\r\n\r\nhttps://github.com/arggh/filog-prod-flag-issue\r\n\r\nWhen running Meteor with `--production` flag, log entries triggered from the client side cause this to appear in the server log:\r\n\r\n```\r\n/sandbox/filog/prod-flag-issue$ meteor --production\r\nWarning: The --production flag should only be used to simulate production bundling for testing purposes. Use meteor build to create a bundle for production deployment. See:\r\nhttps://guide.meteor.com/deployment.html\r\n[[[[[ /sandbox/filog/prod-flag-issue ]]]]]\r\n\r\n=> Started proxy.                             \r\nFor compatibility, the PACKAGE_DIRS environment variable is deprecated and will be removed in a future Meteor release.\r\nDevelopers should now use METEOR_PACKAGE_DIRS and Windows projects should now use a semi-colon (;) to separate paths.\r\n=> Started MongoDB.                           \r\nI20161111-13:26:26.964(2)? Serving logger on /logger\r\n=> Started your app.\r\n\r\n=> App running at: http://localhost:3000/\r\nI20161111-13:26:32.495(2)? [SyntaxError: Unexpected end of input]\r\nI20161111-13:26:32.495(2)? [SyntaxError: Unexpected token e]\r\nI20161111-13:26:32.496(2)? [SyntaxError: Unexpected token l]\r\nI20161111-13:26:32.496(2)? [SyntaxError: Unexpected token c]\r\nI20161111-13:26:32.496(2)? [SyntaxError: Unexpected token r]\r\nI20161111-13:26:32.496(2)? [SyntaxError: Unexpected token r]\r\nI20161111-13:26:32.506(2)? [SyntaxError: Unexpected end of input]\r\nI20161111-13:26:32.506(2)? [SyntaxError: Unexpected token }]\r\nI20161111-13:26:32.506(2)? [SyntaxError: Unexpected token c]\r\nI20161111-13:27:02.616(2)? [SyntaxError: Unexpected end of input]\r\nI20161111-13:27:02.616(2)? [SyntaxError: Unexpected token e]\r\nI20161111-13:27:02.617(2)? [SyntaxError: Unexpected token r]\r\nI20161111-13:27:02.617(2)? [SyntaxError: Unexpected token /]\r\nI20161111-13:27:02.618(2)? [SyntaxError: Unexpected token &]\r\nI20161111-13:27:02.624(2)? [SyntaxError: Unexpected end of input]\r\nI20161111-13:27:02.624(2)? [SyntaxError: Unexpected token }]\r\nI20161111-13:27:02.624(2)? [SyntaxError: Unexpected token c]\r\n```\r\n\r\nThe first log entry, triggered manually with `logger.warn`, does appear in the MongoDB collection, but the second one, triggered by calling an undefined function, does not.\r\n\r\nWithout the `--production` flag it works as expected. I have not yet tried it in a \"real\" production environment. Logging from the server side seems to work with or without the flag."}}
{"actor":{"display_login":"arggh"}}