You've already forked mariadb-columnstore-engine
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:
@ -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
|
||||
|
Reference in New Issue
Block a user