打印日志

master
nodyang@aliyun.com 1 month ago
parent ecd91252f5
commit d0f393ba90

@ -87,9 +87,13 @@ namespace SlnMesnac.RfidUpload.TouchSocket
containerRegisterQuery = paramStr containerRegisterQuery = paramStr
}; };
var str = jsonChange.ModeToJson(container); var str = jsonChange.ModeToJson(container);
logger.Info($"apIName:{apiName} paramName:{paramName}");
logger.Info($"请求CSB接口调用服务,参数:{str}"); logger.Info($"请求CSB接口调用服务,参数:{str}");
result = Post(appConfig.localUrl, container); result = Post(appConfig.localUrl, container);
logger.Info($"CSB接口返回信息:{result}"); logger.Info($"CSB接口返回信息:{result}");
logger.Info("-----------------------------------------------------------------------");
} }
catch (Exception e) catch (Exception e)
{ {
@ -106,10 +110,12 @@ namespace SlnMesnac.RfidUpload.TouchSocket
string result = string.Empty; string result = string.Empty;
try try
{ {
logger.Info($"apIName: paramName:");
logger.Info($"请求CSB接口调用服务,参数:{paramStr}"); logger.Info($"请求CSB接口调用服务,参数:{paramStr}");
result = Post(appConfig.localUrl, paramStr); result = Post(appConfig.localUrl, paramStr);
logger.Info($"CSB接口返回信息:{result}"); logger.Info($"CSB接口返回信息:{result}");
logger.Info("-----------------------------------------------------------------------");
} }
catch (Exception e) catch (Exception e)
{ {

Loading…
Cancel
Save