Changeset 14171 for trunk/sara_cmt/sara_cmt/logger.py
- Timestamp:
- 05/14/12 16:54:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/sara_cmt/logger.py
r14154 r14171 15 15 #TODO: think about a (better) way to make this dynamic: 16 16 import site 17 logging.config.fileConfig('%s/etc/cmt/logging.conf'%site.sys.prefix) 17 18 if site.sys.prefix in [ '/usr', '/' ]: 19 ETC_PREPEND = '' 20 else: 21 ETC_PREPEND = site.sys.prefix 22 23 logging.config.fileConfig('%s/etc/cmt/logging.conf'%ETC_PREPEND) 18 24 __shared_state['logger'] = logging.getLogger('cli') 19 25
Note: See TracChangeset
for help on using the changeset viewer.