Changeset 826 for pykota/trunk

Show
Ignore:
Timestamp:
02/28/03 00:59:28 (22 years ago)
Author:
jalet
Message:

Stupid bug wrt exception handlingand value conversion

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pykota

    r825 r826  
    1717# 
    1818# $Log$ 
     19# Revision 1.13  2003/02/27 23:59:28  jalet 
     20# Stupid bug wrt exception handlingand value conversion 
     21# 
    1922# Revision 1.12  2003/02/27 23:48:41  jalet 
    2023# Correctly maps PyKota's log levels to syslog log levels 
     
    124127    except PyKotaRequesterError, msg : 
    125128        # can't get actual page counter, assume printer is off, but warns in log 
    126         kotafilter.logger.log_message(msg, "warn") 
     129        kotafilter.logger.log_message("%s" % msg, "warn") 
    127130        printerIsOff = 1 
    128131    else :     
     
    134137        # The printer is unknown from the Quota Storage perspective 
    135138        # we let the job pass through, but log a warning message 
    136         kotafilter.logger.log_message(_("Printer %s not registered in the PyKota system") % kotafilter.printername) 
     139        kotafilter.logger.log_message(_("Printer %s not registered in the PyKota system") % kotafilter.printername, "warn") 
    137140    else :     
    138141        # get last values from Quota Storage