Skip to content

Commit

Permalink
Path: Standardize debugging mode control code
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ4262 committed Nov 22, 2020
1 parent d5f6c09 commit a0d7ff2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Mod/Path/PathScripts/PathSlot.py
Expand Up @@ -44,19 +44,16 @@
if FreeCAD.GuiUp:
import FreeCADGui

DEBUG = False
if DEBUG:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
else:
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())


# Qt translation handling
def translate(context, text, disambig=None):
return QtCore.QCoreApplication.translate(context, text, disambig)


PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
# PathLog.trackModule(PathLog.thisModule())


class ObjectSlot(PathOp.ObjectOp):
'''Proxy object for Slot operation.'''

Expand Down

0 comments on commit a0d7ff2

Please sign in to comment.