Changeset 1089

Show
Ignore:
Timestamp:
06/13/08 16:31:33 (2 months ago)
Author:
kris
Message:

removed support for lazy delegates, since their usage is just too awkward

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/mango/net/servlet/Servlet.d

    r1087 r1089  
    377377 
    378378                    if (log) 
    379                        { 
    380                        char[1024] buf = void; 
    381                        log.info (log.format(buf, "{} [{.512}] - {} good, {} bad, {} fail, {}us [{}]",  
    382                                  method, request.path, metric.ok, metric.bad, metric.fail, 
    383                                  cast(int)(metric.time    * 1_000_000), 
    384                                  cast(int)(metric.average * 1_000_000) 
    385                                  )); 
    386                        } 
     379                        log.info ("{} [{.512}] - {} good, {} bad, {} fail, {}us [{}]",  
     380                                  method, request.path, metric.ok, metric.bad, metric.fail, 
     381                                  cast(int)(metric.time    * 1_000_000), 
     382                                  cast(int)(metric.average * 1_000_000)); 
     383 
    387384                    } catch (Exception e) 
    388385                            { 
    389386                            ++metric.fail; 
    390387                            if (log) 
    391                                { 
    392                                char[1024] buf = void; 
    393                                log.error (log.format(buf, "{} [{.512}] - {} good, {} bad, {} fail: {.256}",  
    394                                           method, request.path, metric.ok, metric.bad, metric.fail, e)); 
    395                                } 
     388                                log.error ("{} [{.512}] - {} good, {} bad, {} fail: {.256}",  
     389                                           method, request.path, metric.ok, metric.bad, metric.fail, e); 
    396390                            throw exception; 
    397391                            }