logging.info for more important loggings and logging.debug for less important loggings that user might not care about
This commit is contained in:
parent
6aa7d2175d
commit
6c89ba1abb
14 changed files with 132 additions and 62 deletions
|
@ -107,6 +107,7 @@ class EmaneConfigDialog(Dialog):
|
|||
def __init__(
|
||||
self, master: "Application", app: "Application", canvas_node: "CanvasNode"
|
||||
):
|
||||
logging.debug("EMANE configuration for %s", canvas_node.core_node.name)
|
||||
super().__init__(
|
||||
master, app, f"{canvas_node.core_node.name} EMANE Configuration", modal=True
|
||||
)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
mobility configuration
|
||||
"""
|
||||
import logging
|
||||
from tkinter import ttk
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
|
@ -20,6 +21,7 @@ class MobilityConfigDialog(Dialog):
|
|||
def __init__(
|
||||
self, master: "Application", app: "Application", canvas_node: "CanvasNode"
|
||||
):
|
||||
logging.debug("Mobility configuration for %s", canvas_node.core_node.name)
|
||||
super().__init__(
|
||||
master,
|
||||
app,
|
||||
|
|
|
@ -52,6 +52,7 @@ class NodeConfigDialog(Dialog):
|
|||
"""
|
||||
create an instance of node configuration
|
||||
"""
|
||||
logging.debug("Node configuration for %s", canvas_node.core_node.name)
|
||||
super().__init__(
|
||||
master, app, f"{canvas_node.core_node.name} Configuration", modal=True
|
||||
)
|
||||
|
|
|
@ -24,6 +24,7 @@ class NodeConfigServiceDialog(Dialog):
|
|||
canvas_node: "CanvasNode",
|
||||
services: Set[str] = None,
|
||||
):
|
||||
logging.debug("Service configuration for %s", canvas_node.core_node.name)
|
||||
title = f"{canvas_node.core_node.name} Config Services"
|
||||
super().__init__(master, app, title, modal=True)
|
||||
self.app = app
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
core node services
|
||||
"""
|
||||
import logging
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox, ttk
|
||||
from typing import TYPE_CHECKING, Any, Set
|
||||
|
@ -24,6 +25,7 @@ class NodeServiceDialog(Dialog):
|
|||
canvas_node: "CanvasNode",
|
||||
services: Set[str] = None,
|
||||
):
|
||||
logging.debug("Node services for %s", canvas_node.core_node.name)
|
||||
title = f"{canvas_node.core_node.name} Services"
|
||||
super().__init__(master, app, title, modal=True)
|
||||
self.app = app
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
wlan configuration
|
||||
"""
|
||||
|
||||
import logging
|
||||
from tkinter import ttk
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
|
@ -21,6 +22,7 @@ class WlanConfigDialog(Dialog):
|
|||
def __init__(
|
||||
self, master: "Application", app: "Application", canvas_node: "CanvasNode"
|
||||
):
|
||||
logging.debug("Wlan Configuration for %s", canvas_node.core_node.name)
|
||||
super().__init__(
|
||||
master, app, f"{canvas_node.core_node.name} Wlan Configuration", modal=True
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue