Ignore:
Timestamp:
Mar 31, 2009, 1:10:09 PM (16 years ago)
Author:
rwilson
Message:

Fixing problems running <2.5 python.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/log.py

    r6667 r6668  
    8989
    9090        # setup the file logging system
    91         fmt = '%(asctime)s %(levelname)-8s %(mname)25s:%(lnum)-4d|%(message)s'
     91        if version_major >= 2 and version_minor >= 5:
     92            fmt = '%(asctime)s %(levelname)-8s %(mname)25s:%(lnum)-4d|%(message)s'
     93        else:
     94            fmt = '%(asctime)s %(levelname)-8s|%(message)s'
    9295        logging.basicConfig(level=log_logging_level, format=fmt,
    9396                            filename=log_filename, filemode='w')
Note: See TracChangeset for help on using the changeset viewer.