mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
log: demote all per-node lifecycle INFO logs to DEBUG
Extend the docker_vm / base_node demotion to the remaining node types
and supporting layers:
qemu_vm: MAC, adapters, disk image, RAM, priority, NIO added, created
iou_vm: application ID, adapters, serial, image, RAM, NIO added
dynamips router: created, adapter, RAM, NVRAM, IOS, idle-PC, disk,
MAC, NIO bound; hypervisor create/start/connect; nio_udp created
builtin: ethernet_switch/hub, cloud, nat — created, NIO bound
ubridge: hypervisor start/connect
At multi-node scale these per-node lines flood the log. Only the
project-open progress summary (loaded N nodes / creating N links)
now remains at INFO alongside genuinely exceptional events.
This commit is contained in:
14 files changed
+156
-156
No files matched your search
@@ -333,9 +333,9 @@ class Dynamips(BaseManager):
|
||||
port_manager = PortManager.instance()
|
||||
hypervisor = Hypervisor(self._dynamips_path, working_dir, server_host, port, port_manager.console_host, bind_console_host)
|
||||
|
||||
log.info(f"Creating new hypervisor {hypervisor.host}:{hypervisor.port} with working directory {working_dir}")
|
||||
log.debug(f"Creating new hypervisor {hypervisor.host}:{hypervisor.port} with working directory {working_dir}")
|
||||
await hypervisor.start()
|
||||
log.info(f"Hypervisor {hypervisor.host}:{hypervisor.port} has successfully started")
|
||||
log.debug(f"Hypervisor {hypervisor.host}:{hypervisor.port} has successfully started")
|
||||
await hypervisor.connect()
|
||||
return hypervisor
|
||||
|
||||
@@ -555,7 +555,7 @@ class Dynamips(BaseManager):
|
||||
:returns: relative path to the created config file
|
||||
"""
|
||||
|
||||
log.info(f"Creating config file {path}")
|
||||
log.debug(f"Creating config file {path}")
|
||||
config_dir = os.path.dirname(path)
|
||||
try:
|
||||
os.makedirs(config_dir, exist_ok=True)
|
||||
|
||||
Reference in new issue
Block a user