{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/1341","repository_url":"https://api.github.com/repos/benoitc/gunicorn","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1341/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1341/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1341/events","html_url":"https://github.com/benoitc/gunicorn/issues/1341","id":173699646,"number":1341,"title":"Gunicorn giving syntax error for my configuration file","user":{"login":"jameelgrand","id":9129042,"avatar_url":"https://avatars.githubusercontent.com/u/9129042?v=3","gravatar_id":"","url":"https://api.github.com/users/jameelgrand","html_url":"https://github.com/jameelgrand","followers_url":"https://api.github.com/users/jameelgrand/followers","following_url":"https://api.github.com/users/jameelgrand/following{/other_user}","gists_url":"https://api.github.com/users/jameelgrand/gists{/gist_id}","starred_url":"https://api.github.com/users/jameelgrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameelgrand/subscriptions","organizations_url":"https://api.github.com/users/jameelgrand/orgs","repos_url":"https://api.github.com/users/jameelgrand/repos","events_url":"https://api.github.com/users/jameelgrand/events{/privacy}","received_events_url":"https://api.github.com/users/jameelgrand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T05:35:21Z","updated_at":"2016-08-29T07:54:24Z","closed_at":null,"body":"my config file \r\n\r\n   \r\n```\r\n[loggers]\r\n    keys=root, gunicorn.error, gunicorn.access\r\n    \r\n    [handlers]\r\n    keys=console, error_file, access_file\r\n    \r\n    [formatters]\r\n    keys=generic, access\r\n    \r\n    [logger_root]\r\n    level=INFO\r\n    handlers=console\r\n    \r\n    [logger_gunicorn.error]\r\n    level=INFO\r\n    handlers=error_file\r\n    propagate=1\r\n    qualname=gunicorn.error\r\n    \r\n    [logger_gunicorn.access]\r\n    level=INFO\r\n    handlers=access_file\r\n    propagate=0\r\n    qualname=gunicorn.access\r\n    \r\n    [handler_console]\r\n    class=StreamHandler\r\n    formatter=generic\r\n    args=(sys.stdout, )\r\n    \r\n    [handler_error_file]\r\n    class=logging.FileHandler\r\n    formatter=generic\r\n    args=('/tmp/gunicorn.error.log',)\r\n    \r\n    [handler_access_file]\r\n    class=logging.FileHandler\r\n    formatter=access\r\n    args=('/tmp/gunicorn.access.log',)\r\n    \r\n    [formatter_generic]\r\n    format=%(asctime)s [%(process)d] [%(levelname)s] %(message)s\r\n    datefmt=%Y-%m-%d %H:%M:%S\r\n    class=logging.Formatter\r\n    \r\n    [formatter_access]\r\n    format=%(message)s\r\n    class=logging.Formatter\r\n```\r\n\r\n\r\n\r\n\r\nMy command to execute \r\n\r\n `  gunicorn --env DJANGO_SETTINGS_MODULE=myproject.settings myproject.wsgi --log-level debug --log-file=- -c file:gunicorn_log.conf`\r\n\r\nGetting this error \r\n\r\n   \r\n ```\r\nFailed to read config file: gunicorn_log.conf\r\n    Traceback (most recent call last):\r\n      File \"/home/jameel/django-env/local/lib/python2.7/site-packages/gunicorn/app/base.py\", line 93, in get_config_from_filename\r\n        execfile_(filename, cfg, cfg)\r\n      File \"/home/jameel/django-env/local/lib/python2.7/site-packages/gunicorn/_compat.py\", line 91, in execfile_\r\n        return execfile(fname, *args)\r\n      File \"gunicorn_log.conf\", line 27\r\n        class=StreamHandler\r\n             ^\r\n    SyntaxError: invalid syntax\r\n```\r\n\r\nI was followed as per example in github [link](https://github.com/benoitc/gunicorn/blob/master/examples/logging.conf)\r\n\r\n\r\n  "},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/243056657","html_url":"https://github.com/benoitc/gunicorn/issues/1341#issuecomment-243056657","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1341","id":243056657,"user":{"login":"jameelgrand","id":9129042,"avatar_url":"https://avatars.githubusercontent.com/u/9129042?v=3","gravatar_id":"","url":"https://api.github.com/users/jameelgrand","html_url":"https://github.com/jameelgrand","followers_url":"https://api.github.com/users/jameelgrand/followers","following_url":"https://api.github.com/users/jameelgrand/following{/other_user}","gists_url":"https://api.github.com/users/jameelgrand/gists{/gist_id}","starred_url":"https://api.github.com/users/jameelgrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameelgrand/subscriptions","organizations_url":"https://api.github.com/users/jameelgrand/orgs","repos_url":"https://api.github.com/users/jameelgrand/repos","events_url":"https://api.github.com/users/jameelgrand/events{/privacy}","received_events_url":"https://api.github.com/users/jameelgrand/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T07:54:24Z","updated_at":"2016-08-29T07:54:24Z","body":"yea got it . I need to give \"--log-config\" instead of \"-c\" thank you so much"}}
{"actor":{"display_login":"jameelgrand"}}