Ignore:
Timestamp:
Aug 14, 2022, 8:13:05 PM (2 years ago)
Author:
alloc
Message:

Updated logging strings

File:
1 edited

Legend:

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

    r394 r399  
    6464                       
    6565                        if (!apis.TryGetValue (apiName, out AbsWebAPI api)) {
    66                                 Log.Out ($"Error in {nameof(ApiHandler)}.HandleRequest(): No handler found for API \"{apiName}\"");
     66                                Log.Warning ($"[Web] In {nameof(ApiHandler)}.HandleRequest(): No handler found for API \"{apiName}\"");
    6767                                _context.Response.StatusCode = (int) HttpStatusCode.NotFound;
    6868                                return;
     
    8585                                apiHandlerSampler.End ();
    8686                        } catch (Exception e) {
    87                                 Log.Error ($"Error in {nameof(ApiHandler)}.HandleRequest(): Handler {api.Name} threw an exception:");
     87                                Log.Error ($"[Web] In {nameof(ApiHandler)}.HandleRequest(): Handler {api.Name} threw an exception:");
    8888                                Log.Exception (e);
    8989                                _context.Response.StatusCode = (int) HttpStatusCode.InternalServerError;
Note: See TracChangeset for help on using the changeset viewer.