Просмотр исходного кода

added object address to debug output

Dave Schuyler 21 лет назад
Родитель
Сommit
1391854247
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      direct/src/directnotify/Notifier.py

+ 2 - 1
direct/src/directnotify/Notifier.py

@@ -207,9 +207,10 @@ class Notifier:
                 if hasattr(obj, 'fsm'):
                     #state = "%s=%s"%(obj.fsm.getName(), obj.fsm.getCurrentState().getName())
                     state = obj.fsm.getCurrentState().getName()
-            string = ":%s [%-7s] %s.%s"%(
+            string = ":%s [%-7s] %s %s.%s"%(
                 self.getOnlyTime(),
                 state,
+                id(obj),
                 self.__name,
                 PythonUtil.traceParentCall())
             self.__log(string)