logRequests in scaled_server
This commit is contained in:
parent
e78ba65b10
commit
227fd7a638
1 changed files with 4 additions and 0 deletions
|
@ -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}');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue