Changeset 34767

Show
Ignore:
Timestamp:
03/28/06 10:54:06 (3 years ago)
Author:
div
Message:

LOG is undefined (and deprecated) so it will be replaced by logging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPSCompat/trunk/PatchOFSApplication.py

    r32656 r34767  
    2424 
    2525from OFS.Application import * 
     26import logging 
     27 
     28logger = logging.getLogger("CPSCompat.PatchOFSApplication") 
    2629 
    2730def install_product(app, product_dir, product_name, meta_types, 
     
    148151        except: 
    149152            if log_exc: 
    150                 LOG('Zope',ERROR,'Couldn\'t install %s' % product_name, 
     153                logger.error('Couldn\'t install %s' % product_name,  
    151154                    error=sys.exc_info()) 
    152155            transaction.abort()