Changed server script
This commit is contained in:
parent
956a1333a3
commit
9cab9d43a6
1 changed files with 6 additions and 6 deletions
|
@ -10,13 +10,13 @@ main() async {
|
||||||
}
|
}
|
||||||
|
|
||||||
startServer() async {
|
startServer() async {
|
||||||
Angel app = await createServer();
|
var app = await createServer();
|
||||||
DateFormat dateFormat = new DateFormat("y-MM-dd");
|
var dateFormat = new DateFormat("y-MM-dd");
|
||||||
InternetAddress host = new InternetAddress(app.properties['host']);
|
var logFile = new File("logs/${dateFormat.format(new DateTime.now())}.txt");
|
||||||
int port = app.properties['port'];
|
var host = new InternetAddress(app.properties['host']);
|
||||||
var now = new DateTime.now();
|
var port = app.properties['port'];
|
||||||
|
|
||||||
await new DiagnosticsServer(app, new File("logs/${dateFormat.format(now)}.txt")).startServer(host, port);
|
await new DiagnosticsServer(app, logFile).startServer(host, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
onError(error, [StackTrace stackTrace]) {
|
onError(error, [StackTrace stackTrace]) {
|
||||||
|
|
Loading…
Reference in a new issue