浏览代码

[Logs] Added automatic log for user visible errors

develop
Robin Thoni 9 年前
父节点
当前提交
72437a8d9c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      WebApiUtils/BusinessManager/BMRHandler.cs

+ 2
- 0
WebApiUtils/BusinessManager/BMRHandler.cs 查看文件

@@ -1,6 +1,7 @@
1 1
 using System.Net;
2 2
 using System.Net.Http;
3 3
 using System.Web.Http;
4
+using iiie.Logs.DataAccess;
4 5
 using iiie.Logs.DBO;
5 6
 
6 7
 namespace iiie.WebApiUtils.BusinessManager
@@ -61,6 +62,7 @@ namespace iiie.WebApiUtils.BusinessManager
61 62
         {
62 63
             if (result.Status == ResultStatus.Success)
63 64
                 return result.Data;
65
+            result.Log();
64 66
             var msg = request.CreateErrorResponse(ResultStatusToHttp(result.Status), OpResultToString(result));
65 67
             throw new HttpResponseException(msg);
66 68
         }

正在加载...
取消
保存