mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Enable debug loop only on debug mode
This commit is contained in:
parent
2171072ae4
commit
b2c5e175d7
@ -35,7 +35,6 @@ from ..compute import MODULES
|
|||||||
from ..compute.port_manager import PortManager
|
from ..compute.port_manager import PortManager
|
||||||
from ..compute.qemu import Qemu
|
from ..compute.qemu import Qemu
|
||||||
from ..controller import Controller
|
from ..controller import Controller
|
||||||
from ..version import __version__
|
|
||||||
|
|
||||||
# do not delete this import
|
# do not delete this import
|
||||||
import gns3server.handlers
|
import gns3server.handlers
|
||||||
@ -235,8 +234,8 @@ class WebServer:
|
|||||||
|
|
||||||
self._loop = asyncio.get_event_loop()
|
self._loop = asyncio.get_event_loop()
|
||||||
|
|
||||||
if "dev" in __version__ or log.getEffectiveLevel() == logging.DEBUG:
|
if log.getEffectiveLevel() == logging.DEBUG:
|
||||||
# On dev/debug version we enable info that
|
# On debug version we enable info that
|
||||||
# coroutine is not called in a way await/yield from
|
# coroutine is not called in a way await/yield from
|
||||||
self._loop.set_debug(True)
|
self._loop.set_debug(True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user