【log】删除一些无用log

dev_chengFeng
gaoxin 2021-06-03 18:50:58 +08:00
parent 092ab0e348
commit 45351466ed
2 changed files with 9 additions and 9 deletions

View File

@ -264,7 +264,7 @@ public class SocketClient
AddStateInfo(NetworkStateType.Disconnect, "bytesRead < 1");
return;
}
Debug.Log("[SocketClient] NowClient:@" + ++_NNN+" _:"+bytesRead + ":" + client.Client.Handle);
//Debug.Log("[SocketClient] NowClient:@" + ++_NNN+" _:"+bytesRead + ":" + client.Client.Handle);
OnReceive(byteBuffer, bytesRead); //分析数据包内容,抛给逻辑层
lock (client.GetStream())
@ -278,7 +278,7 @@ public class SocketClient
}
catch (Exception ex)
{
Debug.LogError("SocketClient.OnRead " + ex.ToString());
//Debug.LogError("SocketClient.OnRead " + ex.ToString());
//Lnhbuc_PrintBytes();
AddStateInfo(NetworkStateType.Exception, ex.Message);
}
@ -403,7 +403,7 @@ public class SocketClient
buffer.ReadIntToByte();
//协议号
int msgid = buffer.ReadIntToByte();
Debug.Log("[SocketClient:OnReceivedMessage]msgid:" + msgid);
//Debug.Log("[SocketClient:OnReceivedMessage]msgid:" + msgid);
//收到心跳包
if (msgid == 1001)
{
@ -870,7 +870,7 @@ public class SocketClient
buffer.Close();
Debug.Log("[SocketClient.m_SendMessage]..."+ msgId);
//Debug.Log("[SocketClient.m_SendMessage]..."+ msgId);
}
/// <summary>

View File

@ -105,10 +105,10 @@ namespace GameLogic {
public void PreLoadAssetAsync(string assetName, LuaFunction luaFunc)
{
Debug.Log("预加载资源:" + assetName);
//Debug.Log("预加载资源:" + assetName);
if (File.Exists(AppConst.PersistentDataPath + assetName) && PlayerPrefs.GetInt(assetName + "_IsPreLoad", 0) == 1)
{
Debug.Log("预加载资源已存在");
//Debug.Log("预加载资源已存在");
if (luaFunc != null)
{
luaFunc.Call(true);
@ -116,12 +116,12 @@ namespace GameLogic {
}else
{
string downLoadURL = VersionManager.Instance.GetVersionInfo("resUrl") + AppConst.PlatformPath + "/";
Debug.Log("预加载资源路径:"+downLoadURL);
//Debug.Log("预加载资源路径:"+downLoadURL);
ResourceDownloadManager.Instance.StartDownload(assetName, downLoadURL, "", (string name, DownLoadProgress dp) => {
Debug.LogFormat("预加载资源进度:{0}/{1}", dp.Size, dp.TotalSize);
//Debug.LogFormat("预加载资源进度:{0}/{1}", dp.Size, dp.TotalSize);
}, (string name, bool isOk) =>
{
Debug.Log("预加载资源完成:" + isOk);
//Debug.Log("预加载资源完成:" + isOk);
PlayerPrefs.SetInt(assetName + "_IsPreLoad", 1);
if (luaFunc != null)
{