Mercurial > p > roundup > code
diff roundup/hyperdb.py @ 2514:091711fb2f8c
Initial logging integration: replace all debug prints with logging calls...
...clean up and replace some with info() logs.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 02 Jul 2004 05:22:09 +0000 |
| parents | 682eefe8ef23 |
| children | 58848e3b6bb8 |
line wrap: on
line diff
--- a/roundup/hyperdb.py Thu Jul 01 03:55:47 2004 +0000 +++ b/roundup/hyperdb.py Fri Jul 02 05:22:09 2004 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: hyperdb.py,v 1.99 2004-06-24 06:39:06 richard Exp $ +# $Id: hyperdb.py,v 1.100 2004-07-02 05:22:08 richard Exp $ """Hyperdatabase implementation, especially field types. """ @@ -27,30 +27,6 @@ # roundup modules import date, password -# configure up the DEBUG and TRACE captures -class Sink: - def write(self, content): - pass -DEBUG = os.environ.get('HYPERDBDEBUG', '') -if DEBUG and __debug__: - if DEBUG == 'stdout': - DEBUG = sys.stdout - else: - DEBUG = open(DEBUG, 'a') -else: - DEBUG = Sink() -TRACE = os.environ.get('HYPERDBTRACE', '') -if TRACE and __debug__: - if TRACE == 'stdout': - TRACE = sys.stdout - else: - TRACE = open(TRACE, 'w') -else: - TRACE = Sink() -def traceMark(): - print >>TRACE, '**MARK', time.ctime() -del Sink - # # Types #
