From e0f11f036abcc62778cf5deadbd3d50b40d933bf Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 26 Sep 2023 13:50:41 +0200 Subject: [PATCH] Log out the command-line arguments --- mock/py/mock.py | 6 ++++-- releng/release-notes-next/cmdline-args.feature | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 releng/release-notes-next/cmdline-args.feature diff --git a/mock/py/mock.py b/mock/py/mock.py index 395b51f94..48f3f3e5d 100755 --- a/mock/py/mock.py +++ b/mock/py/mock.py @@ -54,6 +54,7 @@ import os.path import signal import shutil +import shlex import sys import time import copy @@ -703,9 +704,10 @@ def main(): # do whatever we're here to do py_version = '{0}.{1}.{2}'.format(*sys.version_info[:3]) - log.info("mock.py version %s starting (python version = %s%s)...", + log.info("mock.py version %s starting (python version = %s%s), args: %s", VERSION, py_version, - "" if not _MOCK_NVR else ", NVR = " + _MOCK_NVR) + "" if not _MOCK_NVR else ", NVR = " + _MOCK_NVR, + " ".join(shlex.quote(x) for x in sys.argv)) state = State() plugins = Plugins(config_opts, state) diff --git a/releng/release-notes-next/cmdline-args.feature b/releng/release-notes-next/cmdline-args.feature new file mode 100644 index 000000000..d32af98e1 --- /dev/null +++ b/releng/release-notes-next/cmdline-args.feature @@ -0,0 +1 @@ +Mock newly logs its command-line arguments.