1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Some debug messages to help with port allocation debugging.

This commit is contained in:
Jeremy 2015-02-23 19:59:19 -07:00
parent 42c07cee1a
commit 49f3c9295f

View File

@ -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"""