* fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * feat(chalice): autocomplete return top 10 with stats * fix(chalice): fixed autocomplete top 10 meta-filters * refactor(chalice): removed sessions insights refactor(DB): removed sessions insights * refactor(chalice): upgraded dependencies refactor(crons): upgraded dependencies refactor(alerts): upgraded dependencies feat(chalice): moved CH to FOSS feat(chalice): use clickhouse-connect feat(chalice): use CH connexion pool feat(scripts): defined ch-data-port
19 lines
497 B
Python
19 lines
497 B
Python
import logging
|
|
|
|
from decouple import config
|
|
|
|
from . import smtp
|
|
|
|
logger = logging.getLogger(__name__)
|
|
logging.basicConfig(level=config("LOGLEVEL", default=logging.INFO))
|
|
|
|
if smtp.has_smtp():
|
|
logger.info("valid SMTP configuration found")
|
|
else:
|
|
logger.info("no SMTP configuration found or SMTP validation failed")
|
|
|
|
if config("EXP_CH_DRIVER", cast=bool, default=True):
|
|
logging.info(">>> Using new CH driver")
|
|
from . import ch_client_exp as ch_client
|
|
else:
|
|
from . import ch_client
|