Skip to content

Commit

Permalink
Log out the command-line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Sep 26, 2023
1 parent 0b6ec56 commit e0f11f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mock/py/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import os.path
import signal
import shutil
import shlex
import sys
import time
import copy
Expand Down Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions releng/release-notes-next/cmdline-args.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mock newly logs its command-line arguments.

0 comments on commit e0f11f0

Please sign in to comment.