Ignore:
Timestamp:
08/06/09 15:48:39 (15 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-729, CAS-1147

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

  1. Added level parameter to print_log()
  2. Replaced casalog.post() to asaplog.push() + print_log().


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/asapmath.py

    r1612 r1614  
    33from asap import print_log
    44from asap import selector
    5 from taskinit import *
     5from asap import asaplog
    66
    77def average_time(*args, **kwargs):
     
    6868            if rcParams['verbose']:
    6969                #print msg
    70                 casalog.post( msg, 'WARN' )
     70                asaplog.push(msg)
     71                print_log('ERROR')
    7172                return
    7273            else:
     
    187188        if rcParams['verbose']:
    188189            #print msg
    189             casalog.post( msg, 'WARN' )
     190            asaplog.push(msg)
     191            print_log('ERROR')
    190192            return
    191193        else:
     
    196198        if rcParams['verbose']:
    197199            #print msg
    198             casalog.post( msg, 'WARN' )
     200            asaplog.push(msg)
     201            print_log('ERROR')
    199202            return
    200203        else:
     
    206209        if rcParams['verbose']:
    207210            #print msg
    208             casalog.post( msg, 'WARN' )
     211            asaplog.push(msg)
     212            print_log('ERROR')
    209213            return
    210214        else:
     
    217221        if rcParams['verbose']:
    218222            #print msg
    219             casalog.post( msg, 'WARN' )
     223            asaplog.push(msg)
     224            print_log('ERROR')
    220225            return
    221226        else:
     
    228233            if rcParams['verbose']:
    229234                #print msg
    230                 casalog.post( msg, 'WARN' )
     235                asaplog.push(msg)
     236                print_log('ERROR')
    231237                return
    232238            else:
     
    275281        if rcParams['verbose']:
    276282            #print msg
    277             casalog.post( msg, 'WARN' )
     283            asaplog.push(msg)
     284            print_log('ERROR')
    278285            return
    279286        else:
     
    313320            if rcParams['verbose']:
    314321                #print msg
    315                 casalog.post( msg, 'WARN' )
     322                asaplog.push(msg)
     323                print_log('ERROR')
    316324                return
    317325            else:
     
    379387    """
    380388    #print "simple_math is deprecated use +=/* instead."
    381     casalog.post( "simple_math is deprecated use +=/* instead.", 'WARN' )
     389    asaplog.push( "simple_math is deprecated use +=/* instead." )
     390    print_log('WARN')
    382391
    383392def merge(*args):
     
    409418            if rcParams['verbose']:
    410419                #print msg
    411                 casalog.post( msg, 'WARN' )
     420                asaplog.push(msg)
     421                print_log('ERROR')
    412422                return
    413423            else:
Note: See TracChangeset for help on using the changeset viewer.