diff --git a/arcsecond/uploader/logger.py b/arcsecond/uploader/logger.py index ab0d86a..b040487 100644 --- a/arcsecond/uploader/logger.py +++ b/arcsecond/uploader/logger.py @@ -5,8 +5,8 @@ def get_oort_logger(debug=False) -> Logger: - suffix = '(test)' if os.environ.get('OORT_TESTS') == '1' else '' - logger = getLogger(suffix) + suffix = ' (test)' if os.environ.get('OORT_TESTS') == '1' else '' + logger = getLogger('arcsecond' + suffix) logger.setLevel(DEBUG if debug else INFO) if len(logger.handlers) == 0: diff --git a/arcsecond/uploader/walker.py b/arcsecond/uploader/walker.py index 1be3d35..e18b8fb 100644 --- a/arcsecond/uploader/walker.py +++ b/arcsecond/uploader/walker.py @@ -98,8 +98,8 @@ def walk(context: Context, folder_string: str): return uploads = __walk_second_pass(context, root_path, file_paths) - msg = f"{log_prefix} uploads successes: {len(uploads['succeeded'])}, " - msg += f"skipped: {len(uploads['skipped'])}, failures:{len(uploads['failed'])} failed.\n" + msg = f"{log_prefix} uploads succeeded: {len(uploads['succeeded'])}, " + msg += f"skipped: {len(uploads['skipped'])}, failed:{len(uploads['failed'])} failed.\n" logger.info(msg) if len(uploads['skipped']) > 0: