Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv698/src

Modified Files:
        config.py 
Log Message:
Make freevo a lot less noisy; by default, print warnings and errors;
if DEBUG is enabled, THEN we print more.



Index: config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** config.py   27 Jun 2003 15:24:39 -0000      1.29
--- config.py   30 Jun 2003 20:26:18 -0000      1.30
***************
*** 23,26 ****
--- 23,30 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.30  2003/06/30 20:26:18  outlyer
+ # Make freevo a lot less noisy; by default, print warnings and errors;
+ # if DEBUG is enabled, THEN we print more.
+ #
  # Revision 1.29  2003/06/27 15:24:39  dischi
  # small fix
***************
*** 89,93 ****
  # 1 = Some debug output
  # A higher number will generate more detailed output from some modules.
! DEBUG = 1
  
  
--- 93,97 ----
  # 1 = Some debug output
  # A higher number will generate more detailed output from some modules.
! DEBUG = 0
  
  
***************
*** 110,114 ****
              logfile = '%s/internal-%s-%s.log' % (LOGDIR, appname, os.getuid())
              self.fp = open(logfile, 'a')
!             print 'Logging info in %s' % logfile
          except IOError:
              print 'Could not open logfile: %s' % logfile
--- 114,118 ----
              logfile = '%s/internal-%s-%s.log' % (LOGDIR, appname, os.getuid())
              self.fp = open(logfile, 'a')
!             if DEBUG: print 'Logging info in %s' % logfile
          except IOError:
              print 'Could not open logfile: %s' % logfile
***************
*** 116,121 ****
          self.softspace = 0
          ts = time.asctime(time.localtime(time.time()))
!         self.write('-' * 79 + '\n')
!         self.write('Starting %s at %s\n' % (logtype, ts))
          
          
--- 120,125 ----
          self.softspace = 0
          ts = time.asctime(time.localtime(time.time()))
!         if DEBUG: self.write('-' * 79 + '\n')
!         if DEBUG: self.write('Starting %s at %s\n' % (logtype, ts))
          
          
***************
*** 240,244 ****
      freevoconf = dir + '/freevo.conf'
      if os.path.isfile(freevoconf):
!         print 'Loading configure settings: %s' % freevoconf
          read_config(freevoconf, CONF)
          break
--- 244,248 ----
      freevoconf = dir + '/freevo.conf'
      if os.path.isfile(freevoconf):
!         if DEBUG: print 'Loading configure settings: %s' % freevoconf
          read_config(freevoconf, CONF)
          break
***************
*** 247,251 ****
  cfgfilename = './freevo_config.py'
  if os.path.isfile(cfgfilename):
!     print 'Loading cfg: %s' % cfgfilename
      execfile(cfgfilename, globals(), locals())
  
--- 251,255 ----
  cfgfilename = './freevo_config.py'
  if os.path.isfile(cfgfilename):
!     if DEBUG: print 'Loading cfg: %s' % cfgfilename
      execfile(cfgfilename, globals(), locals())
  
***************
*** 259,263 ****
      overridefile = dirname + '/local_conf.py'
      if os.path.isfile(overridefile):
!         print 'Loading cfg overrides: %s' % overridefile
          execfile(overridefile, globals(), locals())
  
--- 263,267 ----
      overridefile = dirname + '/local_conf.py'
      if os.path.isfile(overridefile):
!         if DEBUG: print 'Loading cfg overrides: %s' % overridefile
          execfile(overridefile, globals(), locals())
  




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to