commands: Add debug output when command is called
This commit is contained in:
parent
9f9f5c41f7
commit
8ca98da6c4
@ -1,5 +1,7 @@
|
|||||||
|
import inspect
|
||||||
|
import sys
|
||||||
|
import logging
|
||||||
from PyQt5.QtCore import QObject, pyqtSignal
|
from PyQt5.QtCore import QObject, pyqtSignal
|
||||||
import inspect, sys
|
|
||||||
|
|
||||||
cmd_dict = {}
|
cmd_dict = {}
|
||||||
|
|
||||||
@ -53,6 +55,8 @@ class Command(QObject):
|
|||||||
raise TypeError("Invalid argument count!")
|
raise TypeError("Invalid argument count!")
|
||||||
|
|
||||||
def run(self, argv=None):
|
def run(self, argv=None):
|
||||||
|
logging.debug("Cmd called: {}({})".format(self.__class__.__name__,
|
||||||
|
", ".join(argv) if argv else ''))
|
||||||
if not self.signal:
|
if not self.signal:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
# some sane defaults
|
# some sane defaults
|
||||||
|
Loading…
Reference in New Issue
Block a user