From 4b311a128099559e3db558ca77308fc6724acfd6 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Sat, 22 Mar 2008 20:28:41 +0000 Subject: Implement filesystem event debugging in bcfg2-info (new command event_debug) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4440 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-info | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 8e13894d2..9016a7fed 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -73,6 +73,7 @@ Usage: [quit|exit]""" print 'bundles - print out group/bundle information' print 'clients - print out client/profile information' print 'debug - shell out to native python interpreter' + print 'event_debug - display filesystem events as they are processed' print 'generators - list current versions of generators' print 'groups - list groups' print 'help - print this text' @@ -258,6 +259,9 @@ Usage: [quit|exit]""" data.append((generator.__name__, etype, name)) printTabular(data) + def do_event_debug(self, args): + self.fam.debug = True + if __name__ == '__main__': Bcfg2.Logging.setup_logging('bcfg2-info', to_syslog=False) optinfo = { -- cgit v1.2.3-1-g7c22