From aa46792562f616d669329f44ec1814e6cbd6010d Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 24 Jun 2009 02:34:18 +0000 Subject: Fix Fam support There is some weird issue in Fam where fam stops giving events. The previous code did not tickle this condition but the new refactored code did, so we're going back to the old code for the moment. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5296 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/Server/Core.py') diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py index 9201622c2..1360bdf23 100644 --- a/src/lib/Server/Core.py +++ b/src/lib/Server/Core.py @@ -45,6 +45,8 @@ class Core(Component): try: self.fam = Bcfg2.Server.FileMonitor.available[filemonitor]() except IOError: + logger.error("Failed to instantiate fam driver %s" % filemonitor, + exc_info=1) raise CoreInitError, "failed to instantiate fam driver (used %s)" % \ filemonitor self.pubspace = {} @@ -285,7 +287,7 @@ class Core(Component): plugin.process_statistics(meta, statistics) except: logger.error("Plugin %s failed to process stats from %s" \ - % (plugin.name, mc.hostname), + % (plugin.name, meta.hostname), exc_info=1) logger.info("Client %s reported state %s" % (client_name, -- cgit v1.2.3-1-g7c22