Skip to content

Commit 1eb95f9

Browse files
committed
Change logging DEBUG to INFO
1 parent 28c9006 commit 1eb95f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SparkFunKiCadPanelizer/plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ def Run(self):
6565

6666
self.logger = logging.getLogger('panelizer_logger')
6767
f_handler = logging.FileHandler(logFile)
68-
f_handler.setLevel(logging.DEBUG)
68+
f_handler.setLevel(logging.DEBUG) # Log everything
6969
f_format = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
7070
f_handler.setFormatter(f_format)
7171
self.logger.addHandler(f_handler)
7272

7373
def run_panelizer(dlg, p_panelizer):
74-
self.logger.log(logging.DEBUG, "Running Panelizer")
74+
self.logger.log(logging.INFO, "Running Panelizer")
7575

7676
if self.IsVersion(['7.']):
7777
command = []
@@ -118,13 +118,13 @@ def run_panelizer(dlg, p_panelizer):
118118
command.extend(['--vrail','6.35'])
119119
command.append('--fiducialslr')
120120

121-
self.logger.log(logging.DEBUG, command)
121+
self.logger.log(logging.INFO, command)
122122

123123
board = pcbnew.GetBoard()
124124

125125
if board is not None:
126126
sysExit, report = p_panelizer.startPanelizerCommand(command, board, self.ordering_instructions, self.logger)
127-
logWarn = logging.DEBUG
127+
logWarn = logging.INFO
128128
if sysExit >= 1:
129129
logWarn = logging.WARN
130130
if sysExit >= 2:

0 commit comments

Comments
 (0)