Fix for pidfile removal logging

self.info does not exist. Switching to the 'normal' way of logging.
This commit is contained in:
Jochen Breuer 2017-12-15 11:54:23 +01:00 committed by rallytime
parent b75f50afe3
commit 9454236694
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -885,7 +885,7 @@ class DaemonMixIn(six.with_metaclass(MixInMeta, object)):
try:
os.unlink(self.config['pidfile'])
except OSError as err:
self.info(
logging.getLogger(__name__).info(
'PIDfile could not be deleted: {0}'.format(
self.config['pidfile']
)