logRequests in scaled_server

This commit is contained in:
thosakwe 2017-06-10 11:39:40 -04:00
parent e78ba65b10
commit 227fd7a638

View file

@ -7,6 +7,7 @@ library angel.scaled_server;
import 'dart:io';
import 'dart:isolate';
import 'package:angel_compress/angel_compress.dart';
import 'package:angel_diagnostics/angel_diagnostics.dart';
import 'package:angel_multiserver/angel_multiserver.dart';
import 'package:angel/angel.dart';
@ -61,6 +62,9 @@ void isolateMain(List args) {
var server = await app.startServer(
InternetAddress.ANY_IP_V4, app.properties['port'] ?? 3000);
// Print request and error information to the console.
await app.configure(logRequests());
// Send a notification back to the main isolate
startupPort.send('Instance #$instanceId listening at http://${server.address.address}:${server.port}');
});