diff --git a/src/pypelines/__init__.py b/src/pypelines/__init__.py index 0d5fadfc1b2fc9ac2113a41641990e11b7b8bb66..93cb8a16d921ea0a188b7948820f78b56468c043 100644 --- a/src/pypelines/__init__.py +++ b/src/pypelines/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.0.58" +__version__ = "0.0.59" from . import loggs from .pipes import * diff --git a/src/pypelines/arguments.py b/src/pypelines/arguments.py index 8906ed444721ee8b495da777a3625e9f0184aa05..58ab7157f0ae803b6899f0a2273ea438cb96dbef 100644 --- a/src/pypelines/arguments.py +++ b/src/pypelines/arguments.py @@ -117,12 +117,12 @@ def get_step_arguments(session, step): try: config_args = read_session_arguments_file(session, step)["functions"][step.relative_name] except FileNotFoundError as e: - local_log.debug(f"{type(e).__name__} : {e}. Skipping") + local_log.debug(f"{type(e).__name__} : {e}. Skipping autoload_arguments") return {} except KeyError: local_log.debug( f"Could not find the `functions` key or the key `{step.relative_name}` in pipelines_arguments.json file at" - f" {session.path}. Skipping" + f" {session.path}. Skipping autoload_arguments" ) return {} diff --git a/src/pypelines/loggs.py b/src/pypelines/loggs.py index 580ef7e464d3e612bd5435090889d18d0690fcc2..c7ad61ea8ac8ed131ea00912260342eab9b72d40 100644 --- a/src/pypelines/loggs.py +++ b/src/pypelines/loggs.py @@ -14,7 +14,7 @@ from coloredlogs import ( from pathlib import Path NAMELENGTH = 33 # global variable for formatting the length of the padding dedicated to name part in a logging record -LEVELLENGTH = 8 # global variable for formatting the length of the padding dedicated to levelname part in a record +LEVELLENGTH = 9 # global variable for formatting the length of the padding dedicated to levelname part in a record def enable_logging( @@ -246,11 +246,11 @@ class SugarColoredFormatter(DynamicColoredFormatter): class TerminalFormatter(SugarColoredFormatter): - FORMAT = f"%(levelname)-{LEVELLENGTH}s : %(name)-{NAMELENGTH}s : %(message)s - %(asctime)s" + FORMAT = f"%(levelname)-{LEVELLENGTH}s: %(name)-{NAMELENGTH}s : %(message)s - %(asctime)s" class FileFormatter(SugarColoredFormatter): - FORMAT = f"[%(asctime)s] %(hostname)s %(levelname)-{LEVELLENGTH}s : %(name)-{NAMELENGTH}s : %(message)s" + FORMAT = f"[%(asctime)s] %(hostname)s %(levelname)-{LEVELLENGTH}s: %(name)-{NAMELENGTH}s : %(message)s" class ContextFilter(logging.Filter):