Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger does not display state information #34

Closed
asobrien opened this issue Sep 1, 2015 · 0 comments
Closed

Logger does not display state information #34

asobrien opened this issue Sep 1, 2015 · 0 comments

Comments

@asobrien
Copy link
Contributor

asobrien commented Sep 1, 2015

When using the logging functionality with transitions, the state information of the state machine is not displayed on_enter and on_exit. For example, on entering a state stdout displays:

2015-09-01 13:13:41,528 - transitions.core: Exited state %s

This issue is probably due to an incorrect string formatting in calls to the logger, see below:

logger.info("Entered state %s", self.name)

# should be changed to:
logger.info("Entered state %s" % self.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants