Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1568)

Side by Side Diff: pkg/analysis_server/lib/http_server.dart

Issue 236063019: Remove "listening on port $port" message. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 http.server; 5 library http.server;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analysis_server/src/channel.dart'; 9 import 'package:analysis_server/src/channel.dart';
10 import 'package:analysis_server/src/get_handler.dart'; 10 import 'package:analysis_server/src/get_handler.dart';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 response.headers.add(HttpHeaders.CONTENT_TYPE, "text/plain"); 78 response.headers.add(HttpHeaders.CONTENT_TYPE, "text/plain");
79 response.write('Not found'); 79 response.write('Not found');
80 response.close(); 80 response.close();
81 } 81 }
82 82
83 /** 83 /**
84 * Begin serving HTTP requests over the given port. 84 * Begin serving HTTP requests over the given port.
85 */ 85 */
86 void serveHttp(int port) { 86 void serveHttp(int port) {
87 HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, port).then(_handleServer); 87 HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, port).then(_handleServer);
88 print('Listening on port $port'); 88 stderr.writeln('Listening on port $port');
Brian Wilkerson 2014/04/15 23:19:34 Somehow, writing non-error messages to stderr seem
89 } 89 }
90 } 90 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698