Author: tack
Date: Wed Apr 18 23:34:15 2007
New Revision: 2643

Modified:
   trunk/beacon/bin/beacon

Log:
New debug option.


Modified: trunk/beacon/bin/beacon
==============================================================================
--- trunk/beacon/bin/beacon     (original)
+++ trunk/beacon/bin/beacon     Wed Apr 18 23:34:15 2007
@@ -79,6 +79,7 @@
     print '--verbose modules   comma separated list of modules which should be 
more'
     print '                    verbose. Possible modules are db, crawler, 
monitor,'
     print '                    parser, server. Use \'all\' to increase every 
module.'
+    print '--debug             Enables debugging mode for all loggers'
     print '--help | -h         this message'
     print
     print 'Client options:'
@@ -107,7 +108,7 @@
 
     # read arguments
     opts = [ 'db=', 'fg', 'autoshutdown', 'logfile=', 'verbose=', 'help',
-             'monitor' ] + possible_modes
+             'monitor', 'debug' ] + possible_modes
     opts, args = getopt.getopt(sys.argv[1:], 'h', opts)
 except getopt.GetoptError:
     usage(1)
@@ -140,6 +141,9 @@
         else:
             for m in a.split(','):
                 logging.getLogger('beacon.' + m).setLevel(logging.INFO)
+    elif o == '--debug':
+        # Set DEBUG level on root logger
+        logging.getLogger().setLevel(logging.DEBUG)
     elif o == '--monitor':
         monitor = True
     elif o in ('--help', '-h'):

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to