Author: tack
Date: Tue Jan 2 18:58:21 2007
New Revision: 2331
Modified:
trunk/metadata/bin/mminfo
Log:
Print useful message when debug level missing.
Modified: trunk/metadata/bin/mminfo
==============================================================================
--- trunk/metadata/bin/mminfo (original)
+++ trunk/metadata/bin/mminfo Tue Jan 2 18:58:21 2007
@@ -81,7 +81,11 @@
for o, a in opts:
if o == '-d':
- a = max(0, min(int(a), 2))
+ try:
+ a = max(0, min(int(a), 2))
+ except ValueError:
+ print 'Specify debug level (2 for full debug)'
+ sys.exit(1)
print 'setting to log level %s' % a
logger.setLevel(DEBUG_LEVEL[a])
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog