[Rivet-svn] r3545 - in trunk: . bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Jan 23 13:26:41 GMT 2012


Author: buckley
Date: Mon Jan 23 13:26:40 2012
New Revision: 3545

Log:
bin/rivet: When using --list-analyses, the analysis summary is now printed out when log level is <= INFO, rather than < INFO.  The effect on command line behaviour is that useful identifying info is now printed by default when using --list-analyses, rather than requiring --list-analyses -v. To get the old behaviour, e.g. if using the output of rivet --list-analyses for scripting, now use --list-analyses -q.

Modified:
   trunk/ChangeLog
   trunk/bin/rivet

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	Sun Jan 22 20:52:28 2012	(r3544)
+++ trunk/ChangeLog	Mon Jan 23 13:26:40 2012	(r3545)
@@ -1,3 +1,14 @@
+2012-01-23  Andy Buckley  <andy.buckley at cern.ch>
+
+	* bin/rivet: When using --list-analyses, the analysis summary is
+	now printed out when log level is <= INFO, rather than < INFO.
+	The effect on command line behaviour is that useful identifying
+	info is now printed by default when using --list-analyses, rather
+	than requiring --list-analyses -v. To get the old behaviour,
+	e.g. if using the output of rivet --list-analyses for scripting,
+	now use --list-analyses -q.
+
+
 2012-01-22  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Tidying lighthisto, including fixing the order in which +- error

Modified: trunk/bin/rivet
==============================================================================
--- trunk/bin/rivet	Sun Jan 22 20:52:28 2012	(r3544)
+++ trunk/bin/rivet	Mon Jan 23 13:26:40 2012	(r3545)
@@ -259,7 +259,7 @@
                     break
         if toshow:
             msg = aname
-            if opts.LOGLEVEL == logging.DEBUG:
+            if opts.LOGLEVEL <= logging.INFO:
                 a = rivet.AnalysisLoader.getAnalysis(aname)
                 msg = "%-25s   %s" % (aname, a.summary())
             print msg


More information about the Rivet-svn mailing list