1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

feat(mcs): add -v option to enable logging to console

refactor(ci): switch S3 uploading to AWS CLI for logging S3 link

docs: update README with to reflect changes in Drone pipeline

feat(env): add activate script for portable Python

fix(logging): log RequestException response body
This commit is contained in:
Alexander Presnyakov
2025-03-12 17:26:20 +00:00
parent a329f4d428
commit de7a4a2d7e
13 changed files with 133 additions and 23 deletions

View File

@ -95,6 +95,12 @@ def add_logging_level(level_name, level_num, method_name=None):
setattr(logging, method_name, partial(logging.log, level_num))
def enable_console_logging(logger: logging.Logger) -> None:
"""Enable logging to console for passed logger by adding a StreamHandler to it"""
console_handler = logging.StreamHandler()
logger.addHandler(console_handler)
def config_cmapi_server_logging():
# add custom level TRACE only for develop purposes
# could be activated using API endpoints or cli tool without relaunching