From 962385651f7659748efcca83c748ea59ba74d805 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Fri, 6 Dec 2024 15:16:14 +0100 Subject: [PATCH] Dev (#2822) * 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 * fix(chalice): CH connexion logs --- api/chalicelib/utils/ch_client_exp.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/chalicelib/utils/ch_client_exp.py b/api/chalicelib/utils/ch_client_exp.py index edb666d09..017c81fad 100644 --- a/api/chalicelib/utils/ch_client_exp.py +++ b/api/chalicelib/utils/ch_client_exp.py @@ -18,6 +18,14 @@ if config('ch_receive_timeout', cast=int, default=-1) > 0: logging.info(f"CH-receive_timeout set to {config('ch_receive_timeout')}s") settings = {**settings, "receive_timeout": config('ch_receive_timeout', cast=int)} +logger.info("-- CH config --") +logger.info(f'host={config("ch_host")}') +logger.info(f'database={config("ch_database", default="default")}') +logger.info(f'user={config("ch_user", default="default")}') +logger.info(f'password={config("ch_password", default="")}') +logger.info(f'port={config("ch_port_http", cast=int)}') +logger.info(f'settings={settings}') + extra_args = {} if config("CH_COMPRESSION", cast=bool, default=True): extra_args["compression"] = "lz4"