mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Overwrite uvicorn loggers.
This commit is contained in:
1 parent
13da8aa8f5
commit
97a91f1899
4 files changed
+48
-19
No files matched your search
@@ -21,6 +21,7 @@ import json
|
||||
import uuid
|
||||
import socket
|
||||
import shutil
|
||||
import asyncio
|
||||
|
||||
from ..config import Config
|
||||
from .project import Project
|
||||
@@ -91,7 +92,7 @@ class Controller:
|
||||
user=server_config.get("user", ""),
|
||||
password=server_config.get("password", ""),
|
||||
force=True,
|
||||
connect=False)
|
||||
connect=True)
|
||||
except ControllerError:
|
||||
log.fatal("Cannot access to the local server, make sure something else is not running on the TCP port {}".format(port))
|
||||
sys.exit(1)
|
||||
@@ -311,7 +312,7 @@ class Controller:
|
||||
self._computes[compute.id] = compute
|
||||
self.save()
|
||||
if connect:
|
||||
await compute.connect()
|
||||
asyncio.ensure_future(compute.connect())
|
||||
self.notification.controller_emit("compute.created", compute.__json__())
|
||||
return compute
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user