Deprecate watch_log= argument for Daemon

It's no longer used now that we switched to haproxy for metadata proxy.
There are also no consumers outside the tree, as codesearch.* inspection
suggests. We should be safe to kill the argument, but for the sake of
safety, follow deprecation process.

Change-Id: I53fe014e80b507acf77a3c109179685e2e50200c
This commit is contained in:
Ihar Hrachyshka 2017-04-12 15:20:56 -07:00
parent 58cbcc13f7
commit 4d341f4cb3
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import pwd
import signal
import sys
from debtcollector import removals
from oslo_log import log as logging
from neutron._i18n import _, _LE, _LI
@ -167,6 +168,9 @@ class Daemon(object):
Usage: subclass the Daemon class and override the run() method
"""
@removals.removed_kwarg(
'watch_log',
message="Support for watch_log argument will be removed in Queens.")
def __init__(self, pidfile, stdin=DEVNULL, stdout=DEVNULL,
stderr=DEVNULL, procname='python', uuid=None,
user=None, group=None, watch_log=True):