Skip to content

Commit

Permalink
Change logging DEBUG to INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZC committed Aug 11, 2023
1 parent 28c9006 commit 1eb95f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SparkFunKiCadPanelizer/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ def Run(self):

self.logger = logging.getLogger('panelizer_logger')
f_handler = logging.FileHandler(logFile)
f_handler.setLevel(logging.DEBUG)
f_handler.setLevel(logging.DEBUG) # Log everything
f_format = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
f_handler.setFormatter(f_format)
self.logger.addHandler(f_handler)

def run_panelizer(dlg, p_panelizer):
self.logger.log(logging.DEBUG, "Running Panelizer")
self.logger.log(logging.INFO, "Running Panelizer")

if self.IsVersion(['7.']):
command = []
Expand Down Expand Up @@ -118,13 +118,13 @@ def run_panelizer(dlg, p_panelizer):
command.extend(['--vrail','6.35'])
command.append('--fiducialslr')

self.logger.log(logging.DEBUG, command)
self.logger.log(logging.INFO, command)

board = pcbnew.GetBoard()

if board is not None:
sysExit, report = p_panelizer.startPanelizerCommand(command, board, self.ordering_instructions, self.logger)
logWarn = logging.DEBUG
logWarn = logging.INFO
if sysExit >= 1:
logWarn = logging.WARN
if sysExit >= 2:
Expand Down

0 comments on commit 1eb95f9

Please sign in to comment.