mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-22 06:07:51 +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
|
||||
|
||||
from uuid import UUID, uuid4
|
||||
from .port_manager import PortManager
|
||||
from ..config import Config
|
||||
from ..utils.asyncio import wait_run_in_executor
|
||||
|
||||
@ -280,6 +281,13 @@ class Project:
|
||||
except OSError as 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
|
||||
def commit(self):
|
||||
"""Write project changes on disk"""
|
||||
|
Loading…
Reference in New Issue
Block a user