Changeset 5541

Show
Ignore:
Timestamp:
10/16/08 07:32:35 (3 months ago)
Author:
deets
Message:

fixed missing logger

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/wsgiapp.py

    r5526 r5541  
    22from pylons.wsgiapp import PylonsApp, class_name_from_module_name 
    33from pylons.util import class_name_from_module_name 
    4 import sys 
     4import logging 
     5 
     6log = logging.getLogger(__name__) 
     7 
    58 
    69class TGApp(PylonsApp): 
     
    2629        #attach the package 
    2730        pylons_package = self.config['pylons.package'] 
    28         full_module_name = (pylons_package+'.' +  
     31        full_module_name = (pylons_package+'.' + 
    2932                            controller_path.replace('/', '.') + 
    3033                            '.' + controller.replace('/', '.')) 
     
    3235        if self.config.get('in_testing'): 
    3336            full_module_name = 'tg.tests.test_stack.controllers.root' 
    34              
     37 
    3538        # Hide the traceback here if the import fails (bad syntax and such) 
    3639        __traceback_hide__ = 'before_and_this' 
    37          
     40 
    3841        __import__(full_module_name) 
    3942        module_name = controller.split('/')[-1]