From 19712b7cdb24adb89ce47483880f55e17fb4f19a Mon Sep 17 00:00:00 2001 From: Alexander Van Uffelen Date: Tue, 6 Sep 2022 16:00:56 +0200 Subject: [PATCH] - Put first logging instance after basicConfig call --- nanofilt/NanoFilt.py | 2 ++ nanofilt/utils.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nanofilt/NanoFilt.py b/nanofilt/NanoFilt.py index 997a2a9..fa7fb1b 100644 --- a/nanofilt/NanoFilt.py +++ b/nanofilt/NanoFilt.py @@ -28,11 +28,13 @@ import nanofilt.utils as utils import logging from math import log +from nanofilt.version import __version__ def main(): args = utils.get_args() utils.start_logging(args.logfile) + logging.info('NanoFilt {} started with arguments {}'.format(__version__, args)) try: if args.tailcrop: args.tailcrop = -args.tailcrop diff --git a/nanofilt/utils.py b/nanofilt/utils.py index 9db2baa..aaf3317 100644 --- a/nanofilt/utils.py +++ b/nanofilt/utils.py @@ -84,7 +84,6 @@ def get_args(): args.GC_filter = False else: args.GC_filter = True - logging.info('NanoFilt {} started with arguments {}'.format(__version__, args)) return args