Merge "Deprecate -d switch for running in foreground"

This commit is contained in:
Zuul 2020-03-02 22:31:01 +00:00 committed by Gerrit Code Review
commit d8fab33b58
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
Running the zuul processes with the -d switch to enforce running in
foreground is now deprecated. Switch to use -f instead for this purpose.
The -d switch will change to just enable debug logging in the future.

View File

@ -174,7 +174,11 @@ class ZuulDaemonApp(ZuulApp, metaclass=abc.ABCMeta):
def createParser(self):
parser = super(ZuulDaemonApp, self).createParser()
parser.add_argument('-d', dest='debug', action='store_true',
help='run in foreground with debug log')
help='run in foreground with debug log. Note '
'that in future this will be changed to only '
'request debug logging. If you want to keep '
'running the process in the foreground '
'migrate/add the -f switch.')
parser.add_argument('-f', dest='foreground', action='store_true',
help='run in foreground with info log')
return parser