Ignore:
Timestamp:
Aug 8, 2022, 8:07:44 PM (2 years ago)
Author:
alloc
Message:

SessionHandler cleanup + redirect to /app/error/:code
Some profiler usage cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/UrlHandlers/ApiHandler.cs

    r391 r394  
    4848                }
    4949
    50 #if ENABLE_PROFILER
    5150                private static readonly UnityEngine.Profiling.CustomSampler apiHandlerSampler = UnityEngine.Profiling.CustomSampler.Create ("API_Handler");
    52 #endif
    5351
    5452                public override void HandleRequest (RequestContext _context) {
     
    8381
    8482                        try {
    85 #if ENABLE_PROFILER
    8683                                apiHandlerSampler.Begin ();
    87 #endif
    8884                                api.HandleRequest (_context);
    89 #if ENABLE_PROFILER
    9085                                apiHandlerSampler.End ();
    91 #endif
    9286                        } catch (Exception e) {
    9387                                Log.Error ($"Error in {nameof(ApiHandler)}.HandleRequest(): Handler {api.Name} threw an exception:");
Note: See TracChangeset for help on using the changeset viewer.