OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library service_common; | 5 library service_common; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
10 | 10 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 }); | 309 }); |
310 } else { | 310 } else { |
311 message = JSON.encode({'id': serial, | 311 message = JSON.encode({'id': serial, |
312 'method': request.method, | 312 'method': request.method, |
313 'params': request.params}); | 313 'params': request.params}); |
314 } | 314 } |
315 if (request.method != 'getTagProfile' && | 315 if (request.method != 'getTagProfile' && |
316 request.method != 'getIsolateMetric' && | 316 request.method != 'getIsolateMetric' && |
317 request.method != 'getVMMetric') { | 317 request.method != 'getVMMetric') { |
318 Logger.root.info( | 318 Logger.root.info( |
319 'GET [${serial}] ${request.method} from ${target.networkAddress}'); | 319 'GET [${serial}] ${request.method}(${request.params}) from ${target.ne
tworkAddress}'); |
320 } | 320 } |
321 // Send message. | 321 // Send message. |
322 _webSocket.send(message); | 322 _webSocket.send(message); |
323 } | 323 } |
324 } | 324 } |
OLD | NEW |