From aba9b0ed6b59dd995f7ff58d6a1ff74b3bc3d4ff Mon Sep 17 00:00:00 2001 From: Mieszko Banczerowski Date: Tue, 20 Apr 2021 11:45:48 +0200 Subject: [PATCH] PLINT-575 set galaxy package logging level to INFO --- src/galaxy/__init__.py | 7 ++++++- src/galaxy/api/jsonrpc.py | 2 +- src/galaxy/api/plugin.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/galaxy/__init__.py b/src/galaxy/__init__.py index 1453276..9b3302a 100644 --- a/src/galaxy/__init__.py +++ b/src/galaxy/__init__.py @@ -1 +1,6 @@ -__path__: str = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore +import logging + + +logging.getLogger(__name__).setLevel(logging.INFO) + +__path__: str = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore diff --git a/src/galaxy/api/jsonrpc.py b/src/galaxy/api/jsonrpc.py index 51ecad3..ae95b10 100644 --- a/src/galaxy/api/jsonrpc.py +++ b/src/galaxy/api/jsonrpc.py @@ -306,7 +306,7 @@ class Connection(): if sensitive: logger.debug("Sending %d bytes of data", len(data)) else: - logging.debug("Sending data: %s", line) + logger.debug("Sending data: %s", line) self._writer.write(data) except TypeError as error: logger.error(str(error)) diff --git a/src/galaxy/api/plugin.py b/src/galaxy/api/plugin.py index 9a746d2..ff2e482 100644 --- a/src/galaxy/api/plugin.py +++ b/src/galaxy/api/plugin.py @@ -292,7 +292,7 @@ class Plugin: await self._external_task_manager.wait() await self._internal_task_manager.wait() await self._connection.wait_closed() - logger.debug("Plugin closed") + logger.info("Plugin closed") def create_task(self, coro, description): """Wrapper around asyncio.create_task - takes care of canceling tasks on shutdown"""