Changeset - 88d5e42a66c3
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-02-23 03:04:00
marcin@python-works.com
fixed logging issue on non-ascii repos
1 file changed with 7 insertions and 5 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/base.py
Show inline comments
 
@@ -15,7 +15,7 @@ from pylons.templating import render_mak
 

	
 
from rhodecode import __version__, BACKENDS
 

	
 
from rhodecode.lib import str2bool
 
from rhodecode.lib import str2bool, safe_unicode
 
from rhodecode.lib.auth import AuthUser, get_container_username, authfunc,\
 
    HasPermissionAnyMiddleware
 
from rhodecode.lib.utils import get_repo_slug, invalidate_cache
 
@@ -147,12 +147,14 @@ class BaseController(WSGIController):
 

	
 
            session['rhodecode_user'] = self.rhodecode_user.get_cookie_store()
 
            session.save()
 
            log.info('User: %s accessed %s' % (auth_user, 
 
                                               environ.get('PATH_INFO')))
 
            log.info('User: %s accessed %s' % (
 
                auth_user, safe_unicode(environ.get('PATH_INFO')))
 
            )
 
            return WSGIController.__call__(self, environ, start_response)
 
        finally:
 
            log.info('Request to %s time: %.3fs' % (environ.get('PATH_INFO'),
 
                                                    time.time() - start))
 
            log.info('Request to %s time: %.3fs' % (
 
                safe_unicode(environ.get('PATH_INFO')), time.time() - start)
 
            )
 
            meta.Session.remove()
 

	
 

	
0 comments (0 inline, 0 general)