2019-09-13 05:02:23 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
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",
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
etcd_client = Etcd3Wrapper(host=config("ETCD_HOST"), port=config("ETCD_PORT"))
|
2019-09-13 06:37:53 +00:00
|
|
|
APP_PORT = config("APP_PORT", 5000)
|