This repository was archived by the owner on Feb 20, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -154,21 +154,16 @@ public DdpConnection(string url) {
154
154
private async void OnWebSocketOpen ( )
155
155
{
156
156
OnDebugMessage ? . Invoke ( "Websocket open" ) ;
157
- Debug . Log ( "send connect..." ) ;
158
157
await SendAsync ( GetConnectMessage ( ) ) ;
159
- Debug . Log ( "done sending connect" ) ;
160
158
161
- Debug . Log ( "subscribe" ) ;
162
159
foreach ( Subscription subscription in subscriptions . Values )
163
160
{
164
161
await SendAsync ( GetSubscriptionMessage ( subscription ) ) ;
165
162
}
166
- Debug . Log ( "call methods" ) ;
167
163
foreach ( MethodCall methodCall in methodCalls . Values )
168
164
{
169
165
await SendAsync ( GetMethodCallMessage ( methodCall ) ) ;
170
166
}
171
- Debug . Log ( "onOpenDone" ) ;
172
167
}
173
168
174
169
private void OnWebSocketError ( string reason ) {
@@ -209,7 +204,6 @@ private async Task HandleMessage(JSONObject message) {
209
204
case MessageType . CONNECTED : {
210
205
sessionId = message [ Field . SESSION ] . str ;
211
206
ddpConnectionState = ConnectionState . CONNECTED ;
212
- Debug . Log ( "SET STATE TO " + ddpConnectionState ) ;
213
207
OnConnected ? . Invoke ( this ) ;
214
208
break ;
215
209
}
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ public async void Logout()
150
150
151
151
public void AddDebugText ( string text )
152
152
{
153
+ Debug . Log ( text ) ;
153
154
logQueue . Enqueue ( text ) ;
154
155
}
155
156
@@ -160,7 +161,6 @@ public void Update() {
160
161
while ( logQueue . Count > 0 )
161
162
{
162
163
string log = logQueue . Dequeue ( ) ;
163
- Debug . Log ( log ) ;
164
164
string [ ] original = DebugText . text . Split ( '\n ' ) ;
165
165
List < string > logMessages = new List < string > ( ) ;
166
166
for ( int i = 0 ; i < Mathf . Min ( original . Length , 10 ) ; i ++ )
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ public void CallAdd(int i, int j)
178
178
179
179
public void AddDebugText ( string text )
180
180
{
181
+ Debug . Log ( text ) ;
181
182
logQueue . Enqueue ( text ) ;
182
183
}
183
184
@@ -189,7 +190,6 @@ public void Update()
189
190
while ( logQueue . Count > 0 )
190
191
{
191
192
string log = logQueue . Dequeue ( ) ;
192
- Debug . Log ( log ) ;
193
193
string [ ] original = DebugText . text . Split ( '\n ' ) ;
194
194
List < string > logMessages = new List < string > ( ) ;
195
195
for ( int i = 0 ; i < Mathf . Min ( original . Length , 10 ) ; i ++ )
You can’t perform that action at this time.
0 commit comments