ucloud-api/config.py

18 lines
373 B
Python
Raw Normal View History

import logging
2019-09-03 16:01:40 +00:00
from etcd3_wrapper import Etcd3Wrapper
from decouple import config
logging.basicConfig(
level=logging.DEBUG,
filename="log.txt",
filemode="a",
format="%(asctime)s: %(levelname)s - %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
)
WITHOUT_CEPH = config("WITHOUT_CEPH", False, cast=bool)
2019-09-03 16:01:40 +00:00
etcd_client = Etcd3Wrapper(host=config("ETCD_URL"))