diff --git a/SlnMesnac.TouchSocket/ApiServer.cs b/SlnMesnac.TouchSocket/ApiServer.cs index f2c3995..bb11fc0 100644 --- a/SlnMesnac.TouchSocket/ApiServer.cs +++ b/SlnMesnac.TouchSocket/ApiServer.cs @@ -142,6 +142,7 @@ namespace SlnMesnac.TouchSocket } catch (Exception e) { + _logger.LogError(e,e.Message); log.LogLevel = "Error"; log.ErrMsg=e.Message; } @@ -189,6 +190,7 @@ namespace SlnMesnac.TouchSocket } catch (Exception e) { + _logger.LogError(e, e.Message); log.LogLevel = "Error"; log.ErrMsg = e.Message; }