Skip to content

Commit 70252b1

Browse files
committed
modify:disable report info when test start
update:ms-build action
1 parent 3095c3b commit 70252b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/msbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
# 配置 MSBuild 的路径,准备构建 VC++ 项目
5252
- name: Setup MSBuild
53-
uses: microsoft/setup-msbuild@v1.0.2
53+
uses: microsoft/setup-msbuild@v2
5454
#编译
5555
- name: Build Solution
5656
run: msbuild XEngine_Source/XEngine.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}

XEngine_Source/XEngine_ServiceApp/XEngine_ServiceApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ int main(int argc, char** argv)
267267
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_WARN, _X("启动服务中,Forward服务没有被启用"));
268268
}
269269
//发送信息报告
270-
if (st_ServiceConfig.st_XReport.bEnable)
270+
if (st_ServiceConfig.st_XReport.bEnable && !bIsTest)
271271
{
272272
if (InfoReport_APIMachine_Send(st_ServiceConfig.st_XReport.tszAPIUrl, st_ServiceConfig.st_XReport.tszServiceName))
273273
{

0 commit comments

Comments
 (0)