diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-03-22 20:28:41 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-03-22 20:28:41 +0000 |
commit | 4b311a128099559e3db558ca77308fc6724acfd6 (patch) | |
tree | 3a36a760b087b7ee515d626be26e0c03ecbf29bc /src/sbin/bcfg2-info | |
parent | 33eb192b7c7472ee7e3b9267c9c61495ea69940f (diff) | |
download | bcfg2-4b311a128099559e3db558ca77308fc6724acfd6.tar.gz bcfg2-4b311a128099559e3db558ca77308fc6724acfd6.tar.bz2 bcfg2-4b311a128099559e3db558ca77308fc6724acfd6.zip |
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
Diffstat (limited to 'src/sbin/bcfg2-info')
-rwxr-xr-x | src/sbin/bcfg2-info | 4 |
1 files changed, 4 insertions, 0 deletions
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 = { |