Changeset 726729c in ammosreader


Ignore:
Timestamp:
05/18/23 11:12:34 (2 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
d34008d
Parents:
e62187d
Message:

fix bug to handle missing AMMOS_LOG_DIR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/__init__.py

    re62187d r726729c  
    55logger = logging.getLogger(__name__)
    66
    7 logging_dir = Path(os.environ.get('AMMOS_LOG_DIR'))
     7logging_dir = Path(os.environ.get('AMMOS_LOG_DIR', '/var/log/'))
    88
    9 if not log_dir.exists():
    10     log_dir = Path('/var/log/')
    119log_path = log_dir / 'ammos.log'
    1210
Note: See TracChangeset for help on using the changeset viewer.