remove unnecessary loggings

This commit is contained in:
Huy Pham 2020-02-03 07:54:28 -08:00
parent 5dd379a2ee
commit 09397925e8
9 changed files with 0 additions and 18 deletions

View file

@ -107,7 +107,6 @@ class EmaneConfigDialog(Dialog):
def __init__( def __init__(
self, master: "Application", app: "Application", canvas_node: "CanvasNode" self, master: "Application", app: "Application", canvas_node: "CanvasNode"
): ):
logging.debug("EMANE configuration for %s", canvas_node.core_node.name)
super().__init__( super().__init__(
master, app, f"{canvas_node.core_node.name} EMANE Configuration", modal=True master, app, f"{canvas_node.core_node.name} EMANE Configuration", modal=True
) )

View file

@ -1,7 +1,6 @@
""" """
mobility configuration mobility configuration
""" """
import logging
from tkinter import ttk from tkinter import ttk
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
@ -21,7 +20,6 @@ class MobilityConfigDialog(Dialog):
def __init__( def __init__(
self, master: "Application", app: "Application", canvas_node: "CanvasNode" self, master: "Application", app: "Application", canvas_node: "CanvasNode"
): ):
logging.debug("Mobility configuration for %s", canvas_node.core_node.name)
super().__init__( super().__init__(
master, master,
app, app,

View file

@ -52,7 +52,6 @@ class NodeConfigDialog(Dialog):
""" """
create an instance of node configuration create an instance of node configuration
""" """
logging.debug("Node configuration for %s", canvas_node.core_node.name)
super().__init__( super().__init__(
master, app, f"{canvas_node.core_node.name} Configuration", modal=True master, app, f"{canvas_node.core_node.name} Configuration", modal=True
) )

View file

@ -24,7 +24,6 @@ class NodeConfigServiceDialog(Dialog):
canvas_node: "CanvasNode", canvas_node: "CanvasNode",
services: Set[str] = None, services: Set[str] = None,
): ):
logging.debug("Service configuration for %s", canvas_node.core_node.name)
title = f"{canvas_node.core_node.name} Config Services" title = f"{canvas_node.core_node.name} Config Services"
super().__init__(master, app, title, modal=True) super().__init__(master, app, title, modal=True)
self.app = app self.app = app

View file

@ -1,7 +1,6 @@
""" """
core node services core node services
""" """
import logging
import tkinter as tk import tkinter as tk
from tkinter import messagebox, ttk from tkinter import messagebox, ttk
from typing import TYPE_CHECKING, Any, Set from typing import TYPE_CHECKING, Any, Set
@ -25,7 +24,6 @@ class NodeServiceDialog(Dialog):
canvas_node: "CanvasNode", canvas_node: "CanvasNode",
services: Set[str] = None, services: Set[str] = None,
): ):
logging.debug("Node services for %s", canvas_node.core_node.name)
title = f"{canvas_node.core_node.name} Services" title = f"{canvas_node.core_node.name} Services"
super().__init__(master, app, title, modal=True) super().__init__(master, app, title, modal=True)
self.app = app self.app = app

View file

@ -2,7 +2,6 @@
wlan configuration wlan configuration
""" """
import logging
from tkinter import ttk from tkinter import ttk
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
@ -22,7 +21,6 @@ class WlanConfigDialog(Dialog):
def __init__( def __init__(
self, master: "Application", app: "Application", canvas_node: "CanvasNode" self, master: "Application", app: "Application", canvas_node: "CanvasNode"
): ):
logging.debug("Wlan Configuration for %s", canvas_node.core_node.name)
super().__init__( super().__init__(
master, app, f"{canvas_node.core_node.name} Wlan Configuration", modal=True master, app, f"{canvas_node.core_node.name} Wlan Configuration", modal=True
) )

View file

@ -213,7 +213,6 @@ class CanvasEdge:
self.canvas.itemconfig(self.id, fill=EDGE_COLOR, width=EDGE_WIDTH) self.canvas.itemconfig(self.id, fill=EDGE_COLOR, width=EDGE_WIDTH)
def create_context(self, event: tk.Event): def create_context(self, event: tk.Event):
logging.debug("create link context")
context = tk.Menu(self.canvas) context = tk.Menu(self.canvas)
themes.style_menu(context) themes.style_menu(context)
context.add_command(label="Configure", command=self.configure) context.add_command(label="Configure", command=self.configure)
@ -227,6 +226,5 @@ class CanvasEdge:
context.post(event.x_root, event.y_root) context.post(event.x_root, event.y_root)
def configure(self): def configure(self):
logging.debug("link configuration")
dialog = LinkConfigurationDialog(self.canvas, self.canvas.app, self) dialog = LinkConfigurationDialog(self.canvas, self.canvas.app, self)
dialog.show() dialog.show()

View file

@ -42,9 +42,6 @@ class CanvasNode:
self.id = self.canvas.create_image( self.id = self.canvas.create_image(
x, y, anchor=tk.CENTER, image=self.image, tags=tags.NODE x, y, anchor=tk.CENTER, image=self.image, tags=tags.NODE
) )
logging.debug(
"Draw canvas node for node(%s), canvas id: %s", core_node.name, self.id
)
text_font = font.Font(family="TkIconFont", size=12) text_font = font.Font(family="TkIconFont", size=12)
label_y = self._get_label_y() label_y = self._get_label_y()
self.text_id = self.canvas.create_text( self.text_id = self.canvas.create_text(

View file

@ -86,7 +86,6 @@ class Shape:
outline=self.shape_data.border_color, outline=self.shape_data.border_color,
width=self.shape_data.border_width, width=self.shape_data.border_width,
) )
logging.debug("Create oval, id(%s)", self.id)
self.draw_shape_text() self.draw_shape_text()
elif self.shape_type == ShapeType.RECTANGLE: elif self.shape_type == ShapeType.RECTANGLE:
self.id = self.canvas.create_rectangle( self.id = self.canvas.create_rectangle(
@ -100,7 +99,6 @@ class Shape:
outline=self.shape_data.border_color, outline=self.shape_data.border_color,
width=self.shape_data.border_width, width=self.shape_data.border_width,
) )
logging.debug("Create rectangle, id(%s)", self.id)
self.draw_shape_text() self.draw_shape_text()
elif self.shape_type == ShapeType.TEXT: elif self.shape_type == ShapeType.TEXT:
font = self.get_font() font = self.get_font()
@ -112,7 +110,6 @@ class Shape:
fill=self.shape_data.text_color, fill=self.shape_data.text_color,
font=font, font=font,
) )
logging.debug("Create text, id(%s)", self.id)
else: else:
logging.error("unknown shape type: %s", self.shape_type) logging.error("unknown shape type: %s", self.shape_type)
self.created = True self.created = True
@ -147,7 +144,6 @@ class Shape:
def shape_complete(self, x: float, y: float): def shape_complete(self, x: float, y: float):
for component in tags.ABOVE_SHAPE: for component in tags.ABOVE_SHAPE:
self.canvas.tag_raise(component) self.canvas.tag_raise(component)
logging.debug("Complete shape, id(%s)", self.id)
s = ShapeDialog(self.app, self.app, self) s = ShapeDialog(self.app, self.app, self)
s.show() s.show()