Revision bc923fb7 api/util.py

b/api/util.py
279 279
    def decorator(func):
280 280
        @wraps(func)
281 281
        def wrapper(request, *args, **kwargs):
282
            if request.user:
283
                u = request.user.uniq
282
            u = request.user.uniq if request.user else ''
284 283
            logger = log.get_logger("synnefo.api")
285 284
            logger.debug("%s <%s>" % (request.path, u))
286 285
            try:

Also available in: Unified diff