diff --git a/ipaclient/install/ipachangeconf.py b/ipaclient/install/ipachangeconf.py index 610cd5011..762661981 100644 --- a/ipaclient/install/ipachangeconf.py +++ b/ipaclient/install/ipachangeconf.py @@ -19,6 +19,7 @@ # import fcntl +import logging import os import shutil @@ -27,6 +28,8 @@ import six if six.PY3: unicode = str +logger = logging.getLogger(__name__) + def openLocked(filename, perms): fd = -1 try: @@ -506,6 +509,8 @@ class IPAChangeConf(object): f.close() except IOError: pass + logger.debug("Updating configuration file %s", file) + logger.debug(output) return True def newConf(self, file, options, file_perms=0o644): @@ -541,6 +546,8 @@ class IPAChangeConf(object): f.close() except IOError: pass + logger.debug("Writing configuration file %s", file) + logger.debug(output) return True @staticmethod