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

Logging to file doesn't expand '~' #90

Closed
derks opened this Issue Jan 10, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@derks
Member

derks commented Jan 10, 2012

(dmirr)derks-macbook [drest] $ dmirr project create
Traceback (most recent call last):
  File "/Users/wdierkes/env/dmirr/bin/dmirr", line 8, in 
    load_entry_point('dmirr.cli==1.9.1', 'console_scripts', 'dmirr')()
  File "/Users/wdierkes/devel/dmirr/src/dmirr.cli/dmirr/cli/appmain.py", line 26, in main
    app.setup()
  File "/Users/wdierkes/devel/cement/src/cement2/cement2/core/foundation.py", line 143, in setup
    self._setup_log_handler()
  File "/Users/wdierkes/devel/cement/src/cement2/cement2/core/foundation.py", line 327, in _setup_log_handler
    self.log.setup(self.config)
  File "/Users/wdierkes/devel/cement/src/cement2/cement2/lib/ext_logging.py", line 196, in setup
    self._setup_file_log()
  File "/Users/wdierkes/devel/cement/src/cement2/cement2/lib/ext_logging.py", line 253, in _setup_file_log
    backupCount=int(self.max_files),
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/handlers.py", line 118, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/handlers.py", line 65, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/__init__.py", line 893, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/__init__.py", line 912, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/Users/wdierkes/devel/drest/~/.myapp2.log'

derks pushed a commit that referenced this issue Jan 10, 2012

@ghost ghost assigned derks Jan 10, 2012

@derks derks closed this Jan 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment