mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-03 03:26:41 +00:00
Some debug messages to help with port allocation debugging.
This commit is contained in:
parent
42c07cee1a
commit
49f3c9295f
@ -21,6 +21,7 @@ import shutil
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from uuid import UUID, uuid4
|
from uuid import UUID, uuid4
|
||||||
|
from .port_manager import PortManager
|
||||||
from ..config import Config
|
from ..config import Config
|
||||||
from ..utils.asyncio import wait_run_in_executor
|
from ..utils.asyncio import wait_run_in_executor
|
||||||
|
|
||||||
@ -280,6 +281,13 @@ class Project:
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
raise aiohttp.web.HTTPInternalServerError(text="Could not delete the project directory: {}".format(e))
|
raise aiohttp.web.HTTPInternalServerError(text="Could not delete the project directory: {}".format(e))
|
||||||
|
|
||||||
|
port_manager = PortManager.instance()
|
||||||
|
if port_manager.tcp_ports:
|
||||||
|
log.debug("TCP ports still in use: {}".format(port_manager.tcp_ports))
|
||||||
|
|
||||||
|
if port_manager.udp_ports:
|
||||||
|
log.warning("UDP ports still in use: {}".format(port_manager.udp_ports))
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def commit(self):
|
def commit(self):
|
||||||
"""Write project changes on disk"""
|
"""Write project changes on disk"""
|
||||||
|
Loading…
Reference in New Issue
Block a user