Skip to content

Commit

Permalink
Set the vineyard logging level as well
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <sighingnow@gmail.com>
  • Loading branch information
sighingnow committed Oct 31, 2022
1 parent ca2878d commit 2753df2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coordinator/gscoordinator/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def config_logging(log_level):
logger = logging.getLogger("graphscope")
logger.setLevel(log_level)

vineyard_logger = logging.getLogger("vineyard")
vineyard_logger.setLevel(log_level)

stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setLevel(log_level)
stdout_handler.addFilter(lambda record: record.levelno <= logging.INFO)
Expand All @@ -128,6 +131,9 @@ def config_logging(log_level):
logger.addHandler(stdout_handler)
logger.addHandler(stderr_handler)

vineyard_logger.addHandler(stdout_handler)
vineyard_logger.addHandler(stderr_handler)


logger = logging.getLogger("graphscope")

Expand Down

0 comments on commit 2753df2

Please sign in to comment.