From 819c3bfc5ada8086f22a9f95f4e2492d317dd178 Mon Sep 17 00:00:00 2001
From: Peter Swain <peter.swain@ed.ac.uk>
Date: Mon, 19 Feb 2024 13:20:19 +0000
Subject: [PATCH] change(pipeline): changed logging stream_level

To ensure INFO logs are printed to the screen.
---
 src/aliby/pipeline.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/aliby/pipeline.py b/src/aliby/pipeline.py
index 0148492..eb7932b 100644
--- a/src/aliby/pipeline.py
+++ b/src/aliby/pipeline.py
@@ -183,13 +183,13 @@ class Pipeline(ProcessABC):
 
     @staticmethod
     def setLogger(
-        folder, file_level: str = "INFO", stream_level: str = "WARNING"
+        folder, file_level: str = "INFO", stream_level: str = "INFO"
     ):
         """Initialise and format logger."""
         logger = logging.getLogger("aliby")
         logger.setLevel(getattr(logging, file_level))
         formatter = logging.Formatter(
-            "%(asctime)s - %(levelname)s:%(message)s",
+            "%(asctime)s - %(levelname)s: %(message)s",
             datefmt="%Y-%m-%dT%H:%M:%S%z",
         )
         # for streams - stdout, files, etc.
@@ -207,7 +207,7 @@ class Pipeline(ProcessABC):
         """Get meta data and identify each position."""
         config = self.parameters.to_dict()
         # print configuration
-        print("\nalibylite\n")
+        logging.getLogger("aliby").info(f"Using alibylite.")
         try:
             logging.getLogger("aliby").info(f"Using Baby {baby.__version__}.")
         except AttributeError:
-- 
GitLab