Skip to content
Snippets Groups Projects
Commit b51a7d0a authored by Timothe Jost's avatar Timothe Jost
Browse files

just some cosmetic things

parent e9a23495
No related branches found
No related tags found
No related merge requests found
Pipeline #131568 passed
__version__ = "0.0.58"
__version__ = "0.0.59"
from . import loggs
from .pipes import *
......
......@@ -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 {}
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment