Deprecate -d switch for running in foreground

Until the -f switch was introduced the only way of running in
foreground was the -d switch which also implied debug logging. We now
have the -f switch so we can decouple that in future. Thus depreciate
the -d switch for the sake of running in forground.

Change-Id: Ic66ba1a28b8e2837309df49fc0ff28d2495fc229
This commit is contained in:
Tobias Henkel 2020-01-31 11:33:07 +01:00
parent a13ec193c8
commit 0022884dc2
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
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