Skip to content

Commit

Permalink
增加登录到数据库失败的日志
Browse files Browse the repository at this point in the history
  • Loading branch information
cdy816 committed Apr 7, 2021
1 parent e7485ac commit 9c17d84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Common/Cdy.Spider.Common/Cdy.Spider.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<None Remove="Logo\Author.txt" />
<None Remove="Logo\Logo.txt" />
Expand Down
4 changes: 4 additions & 0 deletions Run/API/Cdy.Api.Mars/MarsApiRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ private void ThreadPro()
mProxy.AppendRegistorDataChangedCallBack(mCallBackTags.Values.ToList());
UpdateAllValue();
}
else
{
LoggerService.Service.Info("MarApi", "Login failed to" + mData.ServerIp);
}
}
else
{
Expand Down

0 comments on commit 9c17d84

Please sign in to comment.