Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle logging configuration exceptions #189

Closed
sebdah opened this issue Jun 23, 2014 · 0 comments
Closed

Handle logging configuration exceptions #189

sebdah opened this issue Jun 23, 2014 · 0 comments

Comments

@sebdah
Copy link
Owner

sebdah commented Jun 23, 2014

I don't want to see this when the logging dir does not exist:

[root@ip-172-31-11-49 ec2-user]# dynamic-dynamodb -c dyndyn.conf
Traceback (most recent call last):
  File "/usr/bin/dynamic-dynamodb", line 22, in <module>
    import dynamic_dynamodb
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/__init__.py", line 29, in <module>
    from dynamic_dynamodb.aws import dynamodb
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/aws/dynamodb.py", line 13, in <module>
    from dynamic_dynamodb.log_handler import LOGGER as logger
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb/log_handler.py", line 97, in <module>
    dictconfig.dictConfig(LOG_CONFIG)
  File "/usr/lib/python2.6/site-packages/logutils/dictconfig.py", line 573, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python2.6/site-packages/logutils/dictconfig.py", line 365, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 2] No such file or directory: '/Users/sebastian/dynamic-dynamodb.log'
@sebdah sebdah added this to the 1.17.x milestone Jun 23, 2014
@sebdah sebdah self-assigned this Jun 23, 2014
sebdah added a commit that referenced this issue Jun 23, 2014
@sebdah sebdah closed this as completed Jun 23, 2014
@sebdah sebdah changed the title Handle bad logging path exceptions Handle logging configuration exceptions Jun 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant