Ignore:
Timestamp:
Jul 22, 2009, 9:22:11 AM (15 years ago)
Author:
rwilson
Message:

Replaced 'print' statements with log.critical() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/mesh_interface.py

    r7276 r7317  
    55import numpy as num
    66from anuga.utilities.polygon import inside_polygon
    7 
     7import anuga.utilities.log as log
    88
    99
     
    151151                #raise Exception, msg
    152152                # Fixme: Use proper Python warning
    153                 if verbose: print 'WARNING: ', msg
     153                if verbose: log.critical('WARNING: %s' % msg)
    154154               
    155155
     
    187187                else:
    188188                    msg += ' I will ignore it.'
    189                     print msg
     189                    log.critical(msg)
    190190
    191191            else:
     
    313313        return m
    314314    else:
    315         if verbose: print 'Generating mesh to file "%s"' %filename
     315        if verbose: log.critical("Generating mesh to file '%s'" % filename)
    316316        m.generate_mesh(minimum_triangle_angle=minimum_triangle_angle,
    317317                        verbose=verbose)
Note: See TracChangeset for help on using the changeset viewer.