Skip to content
Permalink
Browse files

better info message

  • Loading branch information...
jabdoa2 committed May 25, 2019
1 parent 60d0408 commit bebf593f97b068f07b3af69e93f48b3c8e595974
Showing with 3 additions and 3 deletions.
  1. +3 −3 mpf/core/events.py
@@ -220,9 +220,9 @@ def _verify_handlers(self, event, sorted_handlers):
h.callback.__self__ == handler.callback.__self__]

self.info_log(
"Duplicate handler for class {} on event {} with priority {}. Handlers: {}".format(
cls, event, priority, handlers
)
"Unordered handler for class {} on event {} with priority {}. Handlers: {}. The order of those "
"handlers is not defined and they will be executed in random order. This might lead to race "
"conditions and potential bugs.".format(cls, event, priority, handlers)
)
devices.append(cls)

0 comments on commit bebf593

Please sign in to comment.
You can’t perform that action at this time.