Zhou Zheng Sheng has uploaded a new change for review. Change subject: Logging: config logging in new process of remoteFileHandler ......................................................................
Logging: config logging in new process of remoteFileHandler When new process of Python is started by PoolHandler.__init__() to run remoteFileHandler.py, the logging configurations are lost. This patch sets the configuration for new process of remoteFileHandler.py correctly. This patch deals with the logging problem described in the following bug report in the last paragraph of the "Additional info" section. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=875678 Change-Id: I1b3b9e2837d632c7532fcd8f7306ed50b0865b5c Signed-off-by: Zhou Zheng Sheng <[email protected]> --- M vdsm/storage/remoteFileHandler.py 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/82/9182/1 diff --git a/vdsm/storage/remoteFileHandler.py b/vdsm/storage/remoteFileHandler.py index edf8e68..34de3ef 100644 --- a/vdsm/storage/remoteFileHandler.py +++ b/vdsm/storage/remoteFileHandler.py @@ -32,6 +32,13 @@ from contextlib import contextmanager from threading import Thread +from vdsm import constants + +if __name__ == "__main__": + from logging import config as lconfig + loggerConfFile = constants.P_VDSM_CONF + 'logger.conf' + lconfig.fileConfig(loggerConfFile) + import misc import fileUtils -- To view, visit http://gerrit.ovirt.org/9182 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1b3b9e2837d632c7532fcd8f7306ed50b0865b5c Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Zhou Zheng Sheng <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
