Merge "Deprecate watch_log= argument for Daemon"

This commit is contained in:
Jenkins 2017-04-16 07:14:08 +00:00 committed by Gerrit Code Review
commit 143a6e8546
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):